home *** CD-ROM | disk | FTP | other *** search
Unknown | 1996-04-28 | 645.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'HELP('
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | c9 00 00 00 ff ff ff ff |HELP(...|........|
|00000010| 2c 00 00 00 00 fd ff ff | 00 00 00 00 ec 00 00 00 |,.......|........|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 44 49 52 24 |........|$...DIR$|
|00000030| f4 00 00 00 f4 00 00 00 | 20 01 00 00 46 fd ff ff |........| ...F...|
|00000040| f9 3c 33 c1 10 00 00 00 | 13 00 00 00 00 00 00 00 |.<3.....|........|
|00000050| 21 43 6f 6e 66 69 67 75 | 72 65 00 00 30 01 00 00 |!Configu|re..0...|
|00000060| 46 fd ff ff b2 7e 05 c3 | 01 06 00 00 13 00 00 00 |F....~..|........|
|00000070| 00 00 00 00 21 52 6f 6f | 74 00 00 00 34 07 00 00 |....!Roo|t...4...|
|00000080| 46 fd ff ff e3 9b 00 c6 | 80 03 00 00 13 01 00 00 |F.......|........|
|00000090| 00 00 00 00 5b 61 2d 64 | 5d 00 00 00 98 96 00 00 |....[a-d|].......|
|000000a0| 46 fd ff ff 70 9e 00 c6 | a0 04 00 00 13 01 00 00 |F...p...|........|
|000000b0| 00 00 00 00 5b 65 2d 6c | 5d 00 00 00 50 33 01 00 |....[e-l|]...P3..|
|000000c0| 46 fd ff ff 55 a2 00 c6 | 3c 09 00 00 13 01 00 00 |F...U...|<.......|
|000000d0| 00 00 00 00 5b 6d 2d 73 | 5d 00 00 00 d0 d0 09 00 |....[m-s|].......|
|000000e0| 46 fd ff ff 6c ad 00 c6 | 1c 03 00 00 13 01 00 00 |F...l...|........|
|000000f0| 00 00 00 00 5b 74 2d 7a | 5d 00 00 00 f8 09 0a 00 |....[t-z|].......|
|00000100| 46 ff fa ff c0 6f dd c3 | 44 0a 00 00 13 00 00 00 |F....o..|D.......|
|00000110| 00 00 00 00 21 4e 65 75 | 72 6f 48 61 7a 00 00 00 |....!Neu|roHaz...|
|00000120| 44 41 54 41 10 00 00 00 | 23 57 72 61 70 20 4f 6e |DATA....|#Wrap On|
|00000130| 44 41 54 41 01 06 00 00 | 70 65 72 6c 20 2d 20 50 |DATA....|perl - P|
|00000140| 72 61 63 74 69 63 61 6c | 20 45 78 74 72 61 63 74 |ractical| Extract|
|00000150| 69 6f 6e 20 61 6e 64 20 | 52 65 70 6f 72 74 20 4c |ion and |Report L|
|00000160| 61 6e 67 75 61 67 65 0a | 23 57 72 61 70 20 4f 66 |anguage.|#Wrap Of|
|00000170| 66 0a 0a 23 61 6c 69 67 | 6e 20 63 65 6e 74 72 65 |f..#alig|n centre|
|00000180| 0a 7b 66 48 33 7d 4d 61 | 6e 75 61 6c 20 70 61 67 |.{fH3}Ma|nual pag|
|00000190| 65 73 20 66 6f 72 20 70 | 65 72 6c 20 76 65 72 73 |es for p|erl vers|
|000001a0| 69 6f 6e 20 35 7b 66 7d | 0a 0a 63 6f 6e 76 65 72 |ion 5{f}|..conver|
|000001b0| 74 65 64 20 66 72 6f 6d | 20 50 4f 44 20 74 6f 20 |ted from| POD to |
|000001c0| 53 74 72 6f 6e 67 48 65 | 6c 70 20 62 79 20 4d 69 |StrongHe|lp by Mi|
|000001d0| 63 68 61 65 6c 20 41 74 | 74 65 6e 62 6f 72 6f 75 |chael At|tenborou|
|000001e0| 67 68 0a 75 73 69 6e 67 | 20 61 20 70 72 6f 67 72 |gh.using| a progr|
|000001f0| 61 6d 20 77 72 69 74 74 | 65 6e 20 69 6e 20 7b 2a |am writt|en in {*|
|00000200| 7d 70 65 72 6c 7b 2a 7d | 20 2d 20 6d 61 6e 75 61 |}perl{*}| - manua|
|00000210| 6c 20 76 2e 20 31 2e 30 | 30 30 0a 23 61 6c 69 67 |l v. 1.0|00.#alig|
|00000220| 6e 0a 0a 20 20 20 20 3c | 70 65 72 6c 3e 09 50 65 |n.. <|perl>.Pe|
|00000230| 72 6c 20 6f 76 65 72 76 | 69 65 77 0a 20 20 20 20 |rl overv|iew. |
|00000240| 3c 70 65 72 6c 64 61 74 | 61 3e 09 50 65 72 6c 20 |<perldat|a>.Perl |
|00000250| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 73 0a |data str|uctures.|
|00000260| 20 20 20 20 3c 70 65 72 | 6c 73 79 6e 3e 09 50 65 | <per|lsyn>.Pe|
|00000270| 72 6c 20 73 79 6e 74 61 | 78 0a 20 20 20 20 3c 70 |rl synta|x. <p|
|00000280| 65 72 6c 6f 70 3e 09 50 | 65 72 6c 20 6f 70 65 72 |erlop>.P|erl oper|
|00000290| 61 74 6f 72 73 20 61 6e | 64 20 70 72 65 63 65 64 |ators an|d preced|
|000002a0| 65 6e 63 65 0a 20 20 20 | 20 3c 70 65 72 6c 72 65 |ence. | <perlre|
|000002b0| 3e 09 50 65 72 6c 20 72 | 65 67 75 6c 61 72 20 65 |>.Perl r|egular e|
|000002c0| 78 70 72 65 73 73 69 6f | 6e 73 0a 20 20 20 20 3c |xpressio|ns. <|
|000002d0| 70 65 72 6c 72 75 6e 3e | 09 50 65 72 6c 20 65 78 |perlrun>|.Perl ex|
|000002e0| 65 63 75 74 69 6f 6e 20 | 61 6e 64 20 6f 70 74 69 |ecution |and opti|
|000002f0| 6f 6e 73 0a 20 20 20 20 | 3c 70 65 72 6c 66 75 6e |ons. |<perlfun|
|00000300| 63 3e 09 50 65 72 6c 20 | 62 75 69 6c 74 69 6e 20 |c>.Perl |builtin |
|00000310| 66 75 6e 63 74 69 6f 6e | 73 0a 20 20 20 20 3c 70 |function|s. <p|
|00000320| 65 72 6c 76 61 72 3e 09 | 50 65 72 6c 20 70 72 65 |erlvar>.|Perl pre|
|00000330| 64 65 66 69 6e 65 64 20 | 76 61 72 69 61 62 6c 65 |defined |variable|
|00000340| 73 0a 20 20 20 20 3c 70 | 65 72 6c 73 75 62 3e 09 |s. <p|erlsub>.|
|00000350| 50 65 72 6c 20 73 75 62 | 72 6f 75 74 69 6e 65 73 |Perl sub|routines|
|00000360| 0a 20 20 20 20 3c 70 65 | 72 6c 6d 6f 64 3e 09 50 |. <pe|rlmod>.P|
|00000370| 65 72 6c 20 6d 6f 64 75 | 6c 65 73 0a 20 20 20 20 |erl modu|les. |
|00000380| 3c 70 65 72 6c 72 65 66 | 3e 09 50 65 72 6c 20 72 |<perlref|>.Perl r|
|00000390| 65 66 65 72 65 6e 63 65 | 73 20 61 6e 64 20 6e 65 |eference|s and ne|
|000003a0| 73 74 65 64 20 64 61 74 | 61 20 73 74 72 75 63 74 |sted dat|a struct|
|000003b0| 75 72 65 73 0a 20 20 20 | 20 3c 70 65 72 6c 6f 62 |ures. | <perlob|
|000003c0| 6a 3e 09 50 65 72 6c 20 | 6f 62 6a 65 63 74 73 0a |j>.Perl |objects.|
|000003d0| 20 20 20 20 3c 70 65 72 | 6c 62 6f 74 3e 09 50 65 | <per|lbot>.Pe|
|000003e0| 72 6c 20 4f 4f 20 74 72 | 69 63 6b 73 20 61 6e 64 |rl OO tr|icks and|
|000003f0| 20 65 78 61 6d 70 6c 65 | 73 0a 20 20 20 20 3c 70 | example|s. <p|
|00000400| 65 72 6c 64 65 62 75 67 | 3e 09 50 65 72 6c 20 64 |erldebug|>.Perl d|
|00000410| 65 62 75 67 67 69 6e 67 | 0a 20 20 20 20 3c 70 65 |ebugging|. <pe|
|00000420| 72 6c 64 69 61 67 3e 09 | 50 65 72 6c 20 64 69 61 |rldiag>.|Perl dia|
|00000430| 67 6e 6f 73 74 69 63 20 | 6d 65 73 73 61 67 65 73 |gnostic |messages|
|00000440| 0a 20 20 20 20 3c 70 65 | 72 6c 66 6f 72 6d 3e 09 |. <pe|rlform>.|
|00000450| 50 65 72 6c 20 66 6f 72 | 6d 61 74 73 0a 20 20 20 |Perl for|mats. |
|00000460| 20 3c 70 65 72 6c 69 70 | 63 3e 09 50 65 72 6c 20 | <perlip|c>.Perl |
|00000470| 69 6e 74 65 72 70 72 6f | 63 65 73 73 20 63 6f 6d |interpro|cess com|
|00000480| 6d 75 6e 69 63 61 74 69 | 6f 6e 0a 20 20 20 20 3c |municati|on. <|
|00000490| 70 65 72 6c 73 65 63 3e | 09 50 65 72 6c 20 73 65 |perlsec>|.Perl se|
|000004a0| 63 75 72 69 74 79 0a 20 | 20 20 20 3c 70 65 72 6c |curity. | <perl|
|000004b0| 74 72 61 70 3e 09 50 65 | 72 6c 20 74 72 61 70 73 |trap>.Pe|rl traps|
|000004c0| 20 66 6f 72 20 74 68 65 | 20 75 6e 77 61 72 79 0a | for the| unwary.|
|000004d0| 20 20 20 20 3c 70 65 72 | 6c 73 74 79 6c 65 3e 09 | <per|lstyle>.|
|000004e0| 50 65 72 6c 20 73 74 79 | 6c 65 20 67 75 69 64 65 |Perl sty|le guide|
|000004f0| 0a 20 20 20 20 3c 70 65 | 72 6c 61 70 69 3e 09 50 |. <pe|rlapi>.P|
|00000500| 65 72 6c 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |erl appl|ication |
|00000510| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 69 6e 74 65 |programm|ing inte|
|00000520| 72 66 61 63 65 0a 20 20 | 20 20 3c 70 65 72 6c 67 |rface. | <perlg|
|00000530| 75 74 73 3e 09 50 65 72 | 6c 20 69 6e 74 65 72 6e |uts>.Per|l intern|
|00000540| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 73 20 66 6f 72 |al funct|ions for|
|00000550| 20 74 68 6f 73 65 20 64 | 6f 69 6e 67 20 65 78 74 | those d|oing ext|
|00000560| 65 6e 73 69 6f 6e 73 0a | 20 20 20 20 3c 70 65 72 |ensions.| <per|
|00000570| 6c 63 61 6c 6c 3e 09 50 | 65 72 6c 20 63 61 6c 6c |lcall>.P|erl call|
|00000580| 69 6e 67 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 73 20 |ing conv|entions |
|00000590| 66 72 6f 6d 20 43 0a 20 | 20 20 20 3c 70 65 72 6c |from C. | <perl|
|000005a0| 6f 76 6c 3e 09 50 65 72 | 6c 20 6f 76 65 72 6c 6f |ovl>.Per|l overlo|
|000005b0| 61 64 69 6e 67 20 73 65 | 6d 61 6e 74 69 63 73 0a |ading se|mantics.|
|000005c0| 20 20 20 20 3c 70 65 72 | 6c 65 6d 62 65 64 3e 09 | <per|lembed>.|
|000005d0| 50 65 72 6c 20 68 6f 77 | 20 74 6f 20 65 6d 62 65 |Perl how| to embe|
|000005e0| 64 20 70 65 72 6c 20 69 | 6e 20 79 6f 75 72 20 43 |d perl i|n your C|
|000005f0| 20 6f 72 20 43 2b 2b 20 | 61 70 70 0a 20 20 20 20 | or C++ |app. |
|00000600| 3c 70 65 72 6c 70 6f 64 | 3e 09 50 65 72 6c 20 70 |<perlpod|>.Perl p|
|00000610| 6c 61 69 6e 20 6f 6c 64 | 20 64 6f 63 75 6d 65 6e |lain old| documen|
|00000620| 74 61 74 69 6f 6e 0a 20 | 20 20 20 3c 70 65 72 6c |tation. | <perl|
|00000630| 62 6f 6f 6b 3e 09 50 65 | 72 6c 20 62 6f 6f 6b 20 |book>.Pe|rl book |
|00000640| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 0a 23 57 72 61 |informat|ion.#Wra|
|00000650| 70 20 6f 6e 0a 0a 49 66 | 20 73 6f 6d 65 74 68 69 |p on..If| somethi|
|00000660| 6e 67 20 73 74 72 61 6e | 67 65 20 68 61 73 20 67 |ng stran|ge has g|
|00000670| 6f 6e 65 20 77 72 6f 6e | 67 20 77 69 74 68 20 79 |one wron|g with y|
|00000680| 6f 75 72 20 70 72 6f 67 | 72 61 6d 20 61 6e 64 20 |our prog|ram and |
|00000690| 79 6f 75 27 72 65 20 6e | 6f 74 0a 73 75 72 65 20 |you're n|ot.sure |
|000006a0| 77 68 65 72 65 20 79 6f | 75 20 73 68 6f 75 6c 64 |where yo|u should|
|000006b0| 20 6c 6f 6f 6b 20 66 6f | 72 20 68 65 6c 70 2c 20 | look fo|r help, |
|000006c0| 74 72 79 20 74 68 65 20 | 7b 2a 7d 2d 77 7b 2a 7d |try the |{*}-w{*}|
|000006d0| 20 73 77 69 74 63 68 20 | 66 69 72 73 74 2e 20 20 | switch |first. |
|000006e0| 49 74 0a 77 69 6c 6c 20 | 6f 66 74 65 6e 20 70 6f |It.will |often po|
|000006f0| 69 6e 74 20 6f 75 74 20 | 65 78 61 63 74 6c 79 20 |int out |exactly |
|00000700| 77 68 65 72 65 20 74 68 | 65 20 74 72 6f 75 62 6c |where th|e troubl|
|00000710| 65 20 69 73 2e 0a 0a 3c | 43 6f 70 72 69 67 68 74 |e is...<|Copright|
|00000720| 20 69 73 73 75 65 73 3d | 3e 63 6f 70 79 69 6e 67 | issues=|>copying|
|00000730| 3e 00 00 00 44 49 52 24 | 80 03 00 00 80 03 00 00 |>...DIR$|........|
|00000740| b4 0a 00 00 46 ff ff ff | 17 9c 49 c2 8d 00 00 00 |....F...|..I.....|
|00000750| 13 00 00 00 00 00 00 00 | 61 62 73 00 44 0b 00 00 |........|abs.D...|
|00000760| 46 ff ff ff 2d 9c 49 c2 | 1d 01 00 00 13 00 00 00 |F...-.I.|........|
|00000770| 00 00 00 00 61 63 63 65 | 70 74 00 00 64 0c 00 00 |....acce|pt..d...|
|00000780| 46 ff ff ff 4a 9c 49 c2 | 0c 03 00 00 13 00 00 00 |F...J.I.|........|
|00000790| 00 00 00 00 61 6c 61 72 | 6d 00 00 00 70 0f 00 00 |....alar|m...p...|
|000007a0| 46 ff ff ff 5c 9c 49 c2 | 9a 00 00 00 13 00 00 00 |F...\.I.|........|
|000007b0| 00 00 00 00 61 74 61 6e | 32 00 00 00 0c 10 00 00 |....atan|2.......|
|000007c0| 46 ff ff ff 72 9c 49 c2 | 45 01 00 00 13 00 00 00 |F...r.I.|E.......|
|000007d0| 00 00 00 00 62 69 6e 64 | 00 00 00 00 54 11 00 00 |....bind|....T...|
|000007e0| 46 ff ff ff 88 9c 49 c2 | fb 01 00 00 13 00 00 00 |F.....I.|........|
|000007f0| 00 00 00 00 62 69 6e 6d | 6f 64 65 00 50 13 00 00 |....binm|ode.P...|
|00000800| 46 ff ff ff a3 9c 49 c2 | e0 01 00 00 13 00 00 00 |F.....I.|........|
|00000810| 00 00 00 00 62 6c 65 73 | 73 00 00 00 30 15 00 00 |....bles|s...0...|
|00000820| 46 ff ff ff c7 9c 49 c2 | 8c 03 00 00 13 00 00 00 |F.....I.|........|
|00000830| 00 00 00 00 63 61 6c 6c | 65 72 00 00 bc 18 00 00 |....call|er......|
|00000840| 46 ff ff ff dc 9c 49 c2 | 0f 01 00 00 13 00 00 00 |F.....I.|........|
|00000850| 00 00 00 00 63 68 64 69 | 72 00 00 00 cc 19 00 00 |....chdi|r.......|
|00000860| 46 ff ff ff f3 9c 49 c2 | 5f 01 00 00 13 00 00 00 |F.....I.|_.......|
|00000870| 00 00 00 00 63 68 6d 6f | 64 00 00 00 2c 1b 00 00 |....chmo|d...,...|
|00000880| 46 ff ff ff 26 9d 49 c2 | 59 04 00 00 13 00 00 00 |F...&.I.|Y.......|
|00000890| 00 00 00 00 63 68 6f 6d | 70 00 00 00 88 1f 00 00 |....chom|p.......|
|000008a0| 46 ff ff ff 56 9d 49 c2 | c9 03 00 00 13 00 00 00 |F...V.I.|........|
|000008b0| 00 00 00 00 63 68 6f 70 | 00 00 00 00 54 23 00 00 |....chop|....T#..|
|000008c0| 46 ff ff ff 7a 9d 49 c2 | 40 03 00 00 13 00 00 00 |F...z.I.|@.......|
|000008d0| 00 00 00 00 63 68 6f 77 | 6e 00 00 00 94 26 00 00 |....chow|n....&..|
|000008e0| 46 ff ff ff 8f 9d 49 c2 | d9 00 00 00 13 00 00 00 |F.....I.|........|
|000008f0| 00 00 00 00 63 68 72 00 | 70 27 00 00 46 ff ff ff |....chr.|p'..F...|
|00000900| a4 9d 49 c2 fd 00 00 00 | 13 00 00 00 00 00 00 00 |..I.....|........|
|00000910| 63 68 72 6f 6f 74 00 00 | 70 28 00 00 46 ff ff ff |chroot..|p(..F...|
|00000920| c8 9d 49 c2 43 04 00 00 | 13 00 00 00 00 00 00 00 |..I.C...|........|
|00000930| 63 6c 6f 73 65 00 00 00 | b4 2c 00 00 46 ff ff ff |close...|.,..F...|
|00000940| dc 9d 49 c2 97 00 00 00 | 13 00 00 00 00 00 00 00 |..I.....|........|
|00000950| 63 6c 6f 73 65 64 69 72 | 00 00 00 00 4c 2d 00 00 |closedir|....L-..|
|00000960| 46 ff ff ff f2 9d 49 c2 | 51 01 00 00 13 00 00 00 |F.....I.|Q.......|
|00000970| 00 00 00 00 63 6f 6e 6e | 65 63 74 00 a0 2e 00 00 |....conn|ect.....|
|00000980| 46 ff ff ff 06 9e 49 c2 | bc 00 00 00 13 00 00 00 |F.....I.|........|
|00000990| 00 00 00 00 63 6f 73 00 | 5c 2f 00 00 46 ff ff ff |....cos.|\/..F...|
|000009a0| 2b 9e 49 c2 64 03 00 00 | 13 00 00 00 00 00 00 00 |+.I.d...|........|
|000009b0| 63 72 79 70 74 00 00 00 | c0 32 00 00 46 ff ff ff |crypt...|.2..F...|
|000009c0| 42 9e 49 c2 f0 00 00 00 | 13 00 00 00 00 00 00 00 |B.I.....|........|
|000009d0| 64 62 6d 63 6c 6f 73 65 | 00 00 00 00 b0 33 00 00 |dbmclose|.....3..|
|000009e0| 46 ff ff ff 70 9e 49 c2 | bb 05 00 00 13 00 00 00 |F...p.I.|........|
|000009f0| 00 00 00 00 64 62 6d 6f | 70 65 6e 00 6c 39 00 00 |....dbmo|pen.l9..|
|00000a00| 46 ff ff ff 96 9e 49 c2 | ae 04 00 00 13 00 00 00 |F.....I.|........|
|00000a10| 00 00 00 00 64 65 66 69 | 6e 65 64 00 1c 3e 00 00 |....defi|ned..>..|
|00000a20| 46 ff ff ff ba 9e 49 c2 | 37 03 00 00 13 00 00 00 |F.....I.|7.......|
|00000a30| 00 00 00 00 64 65 6c 65 | 74 65 00 00 54 41 00 00 |....dele|te..TA..|
|00000a40| 46 ff ff ff eb 9e 49 c2 | 08 05 00 00 13 00 00 00 |F.....I.|........|
|00000a50| 00 00 00 00 64 69 65 00 | 5c 46 00 00 46 ff ff ff |....die.|\F..F...|
|00000a60| 21 9f 49 c2 f5 04 00 00 | 13 00 00 00 00 00 00 00 |!.I.....|........|
|00000a70| 64 6f 00 00 54 4b 00 00 | 46 ff ff ff 51 9f 49 c2 |do..TK..|F...Q.I.|
|00000a80| bd 04 00 00 13 00 00 00 | 00 00 00 00 64 75 6d 70 |........|....dump|
|00000a90| 00 00 00 00 14 50 00 00 | 46 fd ff ff 11 07 04 c3 |.....P..|F.......|
|00000aa0| 82 46 00 00 13 00 00 00 | 00 00 00 00 43 6f 70 79 |.F......|....Copy|
|00000ab0| 69 6e 67 00 44 41 54 41 | 8d 00 00 00 50 65 72 6c |ing.DATA|....Perl|
|00000ac0| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 61 62 73 | functio|ns - abs|
|00000ad0| 0a 23 70 61 72 65 6e 74 | 20 70 65 72 6c 66 75 6e |.#parent| perlfun|
|00000ae0| 63 0a 23 77 72 61 70 20 | 6f 6e 0a 23 49 6e 64 65 |c.#wrap |on.#Inde|
|00000af0| 6e 74 20 33 0a 23 49 6e | 64 65 6e 74 20 30 0a 61 |nt 3.#In|dent 0.a|
|00000b00| 62 73 20 56 41 4c 55 45 | 0a 23 49 6e 64 65 6e 74 |bs VALUE|.#Indent|
|00000b10| 20 33 0a 0a 52 65 74 75 | 72 6e 73 20 74 68 65 20 | 3..Retu|rns the |
|00000b20| 61 62 73 6f 6c 75 74 65 | 20 76 61 6c 75 65 20 6f |absolute| value o|
|00000b30| 66 20 69 74 73 20 61 72 | 67 75 6d 65 6e 74 2e 0a |f its ar|gument..|
|00000b40| 0a 00 00 00 44 41 54 41 | 1d 01 00 00 50 65 72 6c |....DATA|....Perl|
|00000b50| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 61 63 63 | functio|ns - acc|
|00000b60| 65 70 74 0a 23 70 61 72 | 65 6e 74 20 70 65 72 6c |ept.#par|ent perl|
|00000b70| 66 75 6e 63 0a 23 77 72 | 61 70 20 6f 6e 0a 23 49 |func.#wr|ap on.#I|
|00000b80| 6e 64 65 6e 74 20 33 0a | 23 49 6e 64 65 6e 74 20 |ndent 3.|#Indent |
|00000b90| 30 0a 61 63 63 65 70 74 | 20 4e 45 57 53 4f 43 4b |0.accept| NEWSOCK|
|00000ba0| 45 54 2c 47 45 4e 45 52 | 49 43 53 4f 43 4b 45 54 |ET,GENER|ICSOCKET|
|00000bb0| 0a 23 49 6e 64 65 6e 74 | 20 33 0a 0a 41 63 63 65 |.#Indent| 3..Acce|
|00000bc0| 70 74 73 20 61 6e 20 69 | 6e 63 6f 6d 69 6e 67 20 |pts an i|ncoming |
|00000bd0| 73 6f 63 6b 65 74 20 63 | 6f 6e 6e 65 63 74 2c 20 |socket c|onnect, |
|00000be0| 6a 75 73 74 20 61 73 20 | 74 68 65 20 61 63 63 65 |just as |the acce|
|00000bf0| 70 74 28 32 29 20 73 79 | 73 74 65 6d 20 63 61 6c |pt(2) sy|stem cal|
|00000c00| 6c 0a 64 6f 65 73 2e 20 | 20 52 65 74 75 72 6e 73 |l.does. | Returns|
|00000c10| 20 74 68 65 20 70 61 63 | 6b 65 64 20 61 64 64 72 | the pac|ked addr|
|00000c20| 65 73 73 20 69 66 20 69 | 74 20 73 75 63 63 65 65 |ess if i|t succee|
|00000c30| 64 65 64 2c 20 46 41 4c | 53 45 20 6f 74 68 65 72 |ded, FAL|SE other|
|00000c40| 77 69 73 65 2e 0a 53 65 | 65 20 65 78 61 6d 70 6c |wise..Se|e exampl|
|00000c50| 65 20 69 6e 20 3c 70 65 | 72 6c 69 70 63 3e 2e 0a |e in <pe|rlipc>..|
|00000c60| 0a 00 00 00 44 41 54 41 | 0c 03 00 00 50 65 72 6c |....DATA|....Perl|
|00000c70| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 61 6c 61 | functio|ns - ala|
|00000c80| 72 6d 0a 23 70 61 72 65 | 6e 74 20 70 65 72 6c 66 |rm.#pare|nt perlf|
|00000c90| 75 6e 63 0a 23 77 72 61 | 70 20 6f 6e 0a 23 49 6e |unc.#wra|p on.#In|
|00000ca0| 64 65 6e 74 20 33 0a 23 | 49 6e 64 65 6e 74 20 30 |dent 3.#|Indent 0|
|00000cb0| 0a 61 6c 61 72 6d 20 53 | 45 43 4f 4e 44 53 0a 23 |.alarm S|ECONDS.#|
|00000cc0| 49 6e 64 65 6e 74 20 33 | 0a 0a 41 72 72 61 6e 67 |Indent 3|..Arrang|
|00000cd0| 65 73 20 74 6f 20 68 61 | 76 65 20 61 20 53 49 47 |es to ha|ve a SIG|
|00000ce0| 41 4c 52 4d 20 64 65 6c | 69 76 65 72 65 64 20 74 |ALRM del|ivered t|
|00000cf0| 6f 20 74 68 69 73 20 70 | 72 6f 63 65 73 73 20 61 |o this p|rocess a|
|00000d00| 66 74 65 72 20 74 68 65 | 0a 73 70 65 63 69 66 69 |fter the|.specifi|
|00000d10| 65 64 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 65 63 |ed numbe|r of sec|
|00000d20| 6f 6e 64 73 20 68 61 76 | 65 20 65 6c 61 70 73 65 |onds hav|e elapse|
|00000d30| 64 2e 20 20 28 4f 6e 20 | 73 6f 6d 65 20 6d 61 63 |d. (On |some mac|
|00000d40| 68 69 6e 65 73 2c 0a 75 | 6e 66 6f 72 74 75 6e 61 |hines,.u|nfortuna|
|00000d50| 74 65 6c 79 2c 20 74 68 | 65 20 65 6c 61 70 73 65 |tely, th|e elapse|
|00000d60| 64 20 74 69 6d 65 20 6d | 61 79 20 62 65 20 75 70 |d time m|ay be up|
|00000d70| 20 74 6f 20 6f 6e 65 20 | 73 65 63 6f 6e 64 20 6c | to one |second l|
|00000d80| 65 73 73 20 74 68 61 6e | 20 79 6f 75 0a 73 70 65 |ess than| you.spe|
|00000d90| 63 69 66 69 65 64 20 62 | 65 63 61 75 73 65 20 6f |cified b|ecause o|
|00000da0| 66 20 68 6f 77 20 73 65 | 63 6f 6e 64 73 20 61 72 |f how se|conds ar|
|00000db0| 65 20 63 6f 75 6e 74 65 | 64 2e 29 20 20 4f 6e 6c |e counte|d.) Onl|
|00000dc0| 79 20 6f 6e 65 20 74 69 | 6d 65 72 20 6d 61 79 20 |y one ti|mer may |
|00000dd0| 62 65 0a 63 6f 75 6e 74 | 69 6e 67 20 61 74 20 6f |be.count|ing at o|
|00000de0| 6e 63 65 2e 20 20 45 61 | 63 68 20 63 61 6c 6c 20 |nce. Ea|ch call |
|00000df0| 64 69 73 61 62 6c 65 73 | 20 74 68 65 20 70 72 65 |disables| the pre|
|00000e00| 76 69 6f 75 73 20 74 69 | 6d 65 72 2c 20 61 6e 64 |vious ti|mer, and|
|00000e10| 20 61 6e 0a 61 72 67 75 | 6d 65 6e 74 20 6f 66 20 | an.argu|ment of |
|00000e20| 30 20 6d 61 79 20 62 65 | 20 73 75 70 70 6c 69 65 |0 may be| supplie|
|00000e30| 64 20 74 6f 20 63 61 6e | 63 65 6c 20 74 68 65 20 |d to can|cel the |
|00000e40| 70 72 65 76 69 6f 75 73 | 20 74 69 6d 65 72 20 77 |previous| timer w|
|00000e50| 69 74 68 6f 75 74 0a 73 | 74 61 72 74 69 6e 67 20 |ithout.s|tarting |
|00000e60| 61 20 6e 65 77 20 6f 6e | 65 2e 20 20 54 68 65 20 |a new on|e. The |
|00000e70| 72 65 74 75 72 6e 65 64 | 20 76 61 6c 75 65 20 69 |returned| value i|
|00000e80| 73 20 74 68 65 20 61 6d | 6f 75 6e 74 20 6f 66 20 |s the am|ount of |
|00000e90| 74 69 6d 65 20 72 65 6d | 61 69 6e 69 6e 67 0a 6f |time rem|aining.o|
|00000ea0| 6e 20 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 74 |n the pr|evious t|
|00000eb0| 69 6d 65 72 2e 0a 0a 46 | 6f 72 20 73 6c 65 65 70 |imer...F|or sleep|
|00000ec0| 73 20 6f 66 20 66 69 6e | 65 72 20 67 72 61 6e 75 |s of fin|er granu|
|00000ed0| 6c 61 72 69 74 79 20 74 | 68 61 6e 20 6f 6e 65 20 |larity t|han one |
|00000ee0| 73 65 63 6f 6e 64 2c 20 | 79 6f 75 20 6d 61 79 20 |second, |you may |
|00000ef0| 75 73 65 20 50 65 72 6c | 27 73 0a 73 79 73 63 61 |use Perl|'s.sysca|
|00000f00| 6c 6c 28 29 20 69 6e 74 | 65 72 66 61 63 65 20 74 |ll() int|erface t|
|00000f10| 6f 20 61 63 63 65 73 73 | 20 73 65 74 69 74 69 6d |o access| setitim|
|00000f20| 65 72 28 32 29 20 69 66 | 20 79 6f 75 72 20 73 79 |er(2) if| your sy|
|00000f30| 73 74 65 6d 20 73 75 70 | 70 6f 72 74 73 20 69 74 |stem sup|ports it|
|00000f40| 2c 20 0a 6f 72 20 65 6c | 73 65 20 73 65 65 20 7b |, .or el|se see {|
|00000f50| 66 43 69 74 65 7d 73 65 | 6c 65 63 74 28 29 7b 66 |fCite}se|lect(){f|
|00000f60| 7d 20 65 6e 74 72 79 20 | 62 65 6c 6f 77 2e 0a 0a |} entry |below...|
|00000f70| 44 41 54 41 9a 00 00 00 | 50 65 72 6c 20 66 75 6e |DATA....|Perl fun|
|00000f80| 63 74 69 6f 6e 73 20 2d | 20 61 74 61 6e 32 0a 23 |ctions -| atan2.#|
|00000f90| 70 61 72 65 6e 74 20 70 | 65 72 6c 66 75 6e 63 0a |parent p|erlfunc.|
|00000fa0| 23 77 72 61 70 20 6f 6e | 0a 23 49 6e 64 65 6e 74 |#wrap on|.#Indent|
|00000fb0| 20 33 0a 23 49 6e 64 65 | 6e 74 20 30 0a 61 74 61 | 3.#Inde|nt 0.ata|
|00000fc0| 6e 32 20 59 2c 58 0a 23 | 49 6e 64 65 6e 74 20 33 |n2 Y,X.#|Indent 3|
|00000fd0| 0a 0a 52 65 74 75 72 6e | 73 20 74 68 65 20 61 72 |..Return|s the ar|
|00000fe0| 63 74 61 6e 67 65 6e 74 | 20 6f 66 20 59 5c 2f 58 |ctangent| of Y\/X|
|00000ff0| 20 69 6e 20 74 68 65 20 | 72 61 6e 67 65 20 99 50 | in the |range .P|
|00001000| 49 20 74 6f 20 50 49 2e | 0a 0a 00 00 44 41 54 41 |I to PI.|....DATA|
|00001010| 45 01 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |E...Perl| functio|
|00001020| 6e 73 20 2d 20 62 69 6e | 64 0a 23 70 61 72 65 6e |ns - bin|d.#paren|
|00001030| 74 20 70 65 72 6c 66 75 | 6e 63 0a 23 77 72 61 70 |t perlfu|nc.#wrap|
|00001040| 20 6f 6e 0a 23 49 6e 64 | 65 6e 74 20 33 0a 23 49 | on.#Ind|ent 3.#I|
|00001050| 6e 64 65 6e 74 20 30 0a | 62 69 6e 64 20 53 4f 43 |ndent 0.|bind SOC|
|00001060| 4b 45 54 2c 4e 41 4d 45 | 0a 23 49 6e 64 65 6e 74 |KET,NAME|.#Indent|
|00001070| 20 33 0a 0a 42 69 6e 64 | 73 20 61 20 6e 65 74 77 | 3..Bind|s a netw|
|00001080| 6f 72 6b 20 61 64 64 72 | 65 73 73 20 74 6f 20 61 |ork addr|ess to a|
|00001090| 20 73 6f 63 6b 65 74 2c | 20 6a 75 73 74 20 61 73 | socket,| just as|
|000010a0| 20 74 68 65 20 62 69 6e | 64 20 73 79 73 74 65 6d | the bin|d system|
|000010b0| 20 63 61 6c 6c 0a 64 6f | 65 73 2e 20 20 52 65 74 | call.do|es. Ret|
|000010c0| 75 72 6e 73 20 54 52 55 | 45 20 69 66 20 69 74 20 |urns TRU|E if it |
|000010d0| 73 75 63 63 65 65 64 65 | 64 2c 20 46 41 4c 53 45 |succeede|d, FALSE|
|000010e0| 20 6f 74 68 65 72 77 69 | 73 65 2e 20 20 4e 41 4d | otherwi|se. NAM|
|000010f0| 45 20 73 68 6f 75 6c 64 | 20 62 65 20 61 0a 70 61 |E should| be a.pa|
|00001100| 63 6b 65 64 20 61 64 64 | 72 65 73 73 20 6f 66 20 |cked add|ress of |
|00001110| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|00001120| 74 79 70 65 20 66 6f 72 | 20 74 68 65 20 73 6f 63 |type for| the soc|
|00001130| 6b 65 74 2e 20 20 53 65 | 65 20 65 78 61 6d 70 6c |ket. Se|e exampl|
|00001140| 65 20 69 6e 0a 3c 70 65 | 72 6c 69 70 63 3e 2e 0a |e in.<pe|rlipc>..|
|00001150| 0a 00 00 00 44 41 54 41 | fb 01 00 00 50 65 72 6c |....DATA|....Perl|
|00001160| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 62 69 6e | functio|ns - bin|
|00001170| 6d 6f 64 65 0a 23 70 61 | 72 65 6e 74 20 70 65 72 |mode.#pa|rent per|
|00001180| 6c 66 75 6e 63 0a 23 77 | 72 61 70 20 6f 6e 0a 23 |lfunc.#w|rap on.#|
|00001190| 49 6e 64 65 6e 74 20 33 | 0a 23 49 6e 64 65 6e 74 |Indent 3|.#Indent|
|000011a0| 20 30 0a 62 69 6e 6d 6f | 64 65 20 46 49 4c 45 48 | 0.binmo|de FILEH|
|000011b0| 41 4e 44 4c 45 0a 23 49 | 6e 64 65 6e 74 20 33 0a |ANDLE.#I|ndent 3.|
|000011c0| 0a 41 72 72 61 6e 67 65 | 73 20 66 6f 72 20 74 68 |.Arrange|s for th|
|000011d0| 65 20 66 69 6c 65 20 74 | 6f 20 62 65 20 72 65 61 |e file t|o be rea|
|000011e0| 64 20 6f 72 20 77 72 69 | 74 74 65 6e 20 69 6e 20 |d or wri|tten in |
|000011f0| 22 62 69 6e 61 72 79 22 | 20 6d 6f 64 65 20 69 6e |"binary"| mode in|
|00001200| 0a 6f 70 65 72 61 74 69 | 6e 67 20 73 79 73 74 65 |.operati|ng syste|
|00001210| 6d 73 20 74 68 61 74 20 | 64 69 73 74 69 6e 67 75 |ms that |distingu|
|00001220| 69 73 68 20 62 65 74 77 | 65 65 6e 20 62 69 6e 61 |ish betw|een bina|
|00001230| 72 79 20 61 6e 64 20 74 | 65 78 74 20 66 69 6c 65 |ry and t|ext file|
|00001240| 73 2e 0a 46 69 6c 65 73 | 20 74 68 61 74 20 61 72 |s..Files| that ar|
|00001250| 65 20 6e 6f 74 20 69 6e | 20 62 69 6e 61 72 79 20 |e not in| binary |
|00001260| 6d 6f 64 65 20 68 61 76 | 65 20 43 52 20 4c 46 20 |mode hav|e CR LF |
|00001270| 73 65 71 75 65 6e 63 65 | 73 20 74 72 61 6e 73 6c |sequence|s transl|
|00001280| 61 74 65 64 20 74 6f 20 | 4c 46 0a 6f 6e 20 69 6e |ated to |LF.on in|
|00001290| 70 75 74 20 61 6e 64 20 | 4c 46 20 74 72 61 6e 73 |put and |LF trans|
|000012a0| 6c 61 74 65 64 20 74 6f | 20 43 52 20 4c 46 20 6f |lated to| CR LF o|
|000012b0| 6e 20 6f 75 74 70 75 74 | 2e 20 20 42 69 6e 6d 6f |n output|. Binmo|
|000012c0| 64 65 20 68 61 73 20 6e | 6f 20 65 66 66 65 63 74 |de has n|o effect|
|000012d0| 0a 75 6e 64 65 72 20 55 | 6e 69 78 3b 20 69 6e 20 |.under U|nix; in |
|000012e0| 44 4f 53 2c 20 69 74 20 | 6d 61 79 20 62 65 20 69 |DOS, it |may be i|
|000012f0| 6d 70 65 72 61 74 69 76 | 65 2e 20 20 49 66 20 46 |mperativ|e. If F|
|00001300| 49 4c 45 48 41 4e 44 4c | 45 20 69 73 20 61 6e 20 |ILEHANDL|E is an |
|00001310| 65 78 70 72 65 73 73 69 | 6f 6e 2c 0a 74 68 65 20 |expressi|on,.the |
|00001320| 76 61 6c 75 65 20 69 73 | 20 74 61 6b 65 6e 20 61 |value is| taken a|
|00001330| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00001340| 65 20 66 69 6c 65 68 61 | 6e 64 6c 65 2e 0a 0a 00 |e fileha|ndle....|
|00001350| 44 41 54 41 e0 01 00 00 | 50 65 72 6c 20 66 75 6e |DATA....|Perl fun|
|00001360| 63 74 69 6f 6e 73 20 2d | 20 62 6c 65 73 73 0a 23 |ctions -| bless.#|
|00001370| 70 61 72 65 6e 74 20 70 | 65 72 6c 66 75 6e 63 0a |parent p|erlfunc.|
|00001380| 23 77 72 61 70 20 6f 6e | 0a 23 49 6e 64 65 6e 74 |#wrap on|.#Indent|
|00001390| 20 33 0a 23 49 6e 64 65 | 6e 74 20 30 0a 62 6c 65 | 3.#Inde|nt 0.ble|
|000013a0| 73 73 20 52 45 46 2c 50 | 41 43 4b 41 47 45 0a 23 |ss REF,P|ACKAGE.#|
|000013b0| 49 6e 64 65 6e 74 20 33 | 0a 23 49 6e 64 65 6e 74 |Indent 3|.#Indent|
|000013c0| 20 30 0a 62 6c 65 73 73 | 20 52 45 46 0a 23 49 6e | 0.bless| REF.#In|
|000013d0| 64 65 6e 74 20 33 0a 0a | 54 68 69 73 20 66 75 6e |dent 3..|This fun|
|000013e0| 63 74 69 6f 6e 20 74 65 | 6c 6c 73 20 74 68 65 20 |ction te|lls the |
|000013f0| 72 65 66 65 72 65 6e 63 | 65 64 20 6f 62 6a 65 63 |referenc|ed objec|
|00001400| 74 20 28 70 61 73 73 65 | 64 20 61 73 20 52 45 46 |t (passe|d as REF|
|00001410| 29 20 74 68 61 74 20 69 | 74 20 69 73 20 6e 6f 77 |) that i|t is now|
|00001420| 0a 61 6e 20 6f 62 6a 65 | 63 74 20 69 6e 20 50 41 |.an obje|ct in PA|
|00001430| 43 4b 41 47 45 99 99 6f | 72 20 74 68 65 20 63 75 |CKAGE..o|r the cu|
|00001440| 72 72 65 6e 74 20 70 61 | 63 6b 61 67 65 20 69 66 |rrent pa|ckage if|
|00001450| 20 6e 6f 20 50 41 43 4b | 41 47 45 20 69 73 20 73 | no PACK|AGE is s|
|00001460| 70 65 63 69 66 69 65 64 | 2c 0a 77 68 69 63 68 20 |pecified|,.which |
|00001470| 69 73 20 74 68 65 20 75 | 73 75 61 6c 20 63 61 73 |is the u|sual cas|
|00001480| 65 2e 20 20 49 74 20 72 | 65 74 75 72 6e 73 20 74 |e. It r|eturns t|
|00001490| 68 65 20 72 65 66 65 72 | 65 6e 63 65 20 66 6f 72 |he refer|ence for|
|000014a0| 20 63 6f 6e 76 65 6e 69 | 65 6e 63 65 2c 20 73 69 | conveni|ence, si|
|000014b0| 6e 63 65 0a 61 20 62 6c | 65 73 73 28 29 20 69 73 |nce.a bl|ess() is|
|000014c0| 20 6f 66 74 65 6e 20 74 | 68 65 20 6c 61 73 74 20 | often t|he last |
|000014d0| 74 68 69 6e 67 20 69 6e | 20 61 20 63 6f 6e 73 74 |thing in| a const|
|000014e0| 72 75 63 74 6f 72 2e 20 | 20 53 65 65 20 3c 70 65 |ructor. | See <pe|
|000014f0| 72 6c 6f 62 6a 3e 20 66 | 6f 72 0a 6d 6f 72 65 20 |rlobj> f|or.more |
|00001500| 61 62 6f 75 74 20 74 68 | 65 20 62 6c 65 73 73 69 |about th|e blessi|
|00001510| 6e 67 20 28 61 6e 64 20 | 62 6c 65 73 73 69 6e 67 |ng (and |blessing|
|00001520| 73 29 20 6f 66 20 6f 62 | 6a 65 63 74 73 2e 0a 0a |s) of ob|jects...|
|00001530| 44 41 54 41 8c 03 00 00 | 50 65 72 6c 20 66 75 6e |DATA....|Perl fun|
|00001540| 63 74 69 6f 6e 73 20 2d | 20 63 61 6c 6c 65 72 0a |ctions -| caller.|
|00001550| 23 70 61 72 65 6e 74 20 | 70 65 72 6c 66 75 6e 63 |#parent |perlfunc|
|00001560| 0a 23 77 72 61 70 20 6f | 6e 0a 23 49 6e 64 65 6e |.#wrap o|n.#Inden|
|00001570| 74 20 33 0a 23 49 6e 64 | 65 6e 74 20 30 0a 63 61 |t 3.#Ind|ent 0.ca|
|00001580| 6c 6c 65 72 20 45 58 50 | 52 0a 23 49 6e 64 65 6e |ller EXP|R.#Inden|
|00001590| 74 20 33 0a 23 49 6e 64 | 65 6e 74 20 30 0a 63 61 |t 3.#Ind|ent 0.ca|
|000015a0| 6c 6c 65 72 0a 23 49 6e | 64 65 6e 74 20 33 0a 0a |ller.#In|dent 3..|
|000015b0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 63 6f 6e 74 |Returns |the cont|
|000015c0| 65 78 74 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ext of t|he curre|
|000015d0| 6e 74 20 73 75 62 72 6f | 75 74 69 6e 65 20 63 61 |nt subro|utine ca|
|000015e0| 6c 6c 2e 20 20 49 6e 20 | 61 20 73 63 61 6c 61 72 |ll. In |a scalar|
|000015f0| 20 63 6f 6e 74 65 78 74 | 2c 0a 72 65 74 75 72 6e | context|,.return|
|00001600| 73 20 54 52 55 45 20 69 | 66 20 74 68 65 72 65 20 |s TRUE i|f there |
|00001610| 69 73 20 61 20 63 61 6c | 6c 65 72 2c 20 74 68 61 |is a cal|ler, tha|
|00001620| 74 20 69 73 2c 20 69 66 | 20 77 65 27 72 65 20 69 |t is, if| we're i|
|00001630| 6e 20 61 20 73 75 62 72 | 6f 75 74 69 6e 65 20 6f |n a subr|outine o|
|00001640| 72 0a 65 76 61 6c 28 29 | 20 6f 72 20 72 65 71 75 |r.eval()| or requ|
|00001650| 69 72 65 28 29 2c 20 61 | 6e 64 20 46 41 4c 53 45 |ire(), a|nd FALSE|
|00001660| 20 6f 74 68 65 72 77 69 | 73 65 2e 20 20 49 6e 20 | otherwi|se. In |
|00001670| 61 20 6c 69 73 74 20 63 | 6f 6e 74 65 78 74 2c 20 |a list c|ontext, |
|00001680| 72 65 74 75 72 6e 73 0a | 0a 23 46 43 6f 64 65 0a |returns.|.#FCode.|
|00001690| 23 57 72 61 70 20 4e 6f | 4a 6f 69 6e 0a 20 20 20 |#Wrap No|Join. |
|000016a0| 20 28 24 70 61 63 6b 61 | 67 65 2c 20 24 66 69 6c | ($packa|ge, $fil|
|000016b0| 65 6e 61 6d 65 2c 20 24 | 6c 69 6e 65 29 20 3d 20 |ename, $|line) = |
|000016c0| 63 61 6c 6c 65 72 3b 0a | 23 57 72 61 70 0a 23 46 |caller;.|#Wrap.#F|
|000016d0| 0a 0a 57 69 74 68 20 45 | 58 50 52 2c 20 69 74 20 |..With E|XPR, it |
|000016e0| 72 65 74 75 72 6e 73 20 | 73 6f 6d 65 20 65 78 74 |returns |some ext|
|000016f0| 72 61 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |ra infor|mation t|
|00001700| 68 61 74 20 74 68 65 20 | 64 65 62 75 67 67 65 72 |hat the |debugger|
|00001710| 20 75 73 65 73 20 74 6f | 0a 70 72 69 6e 74 20 61 | uses to|.print a|
|00001720| 20 73 74 61 63 6b 20 74 | 72 61 63 65 2e 20 20 54 | stack t|race. T|
|00001730| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 45 58 50 52 |he value| of EXPR|
|00001740| 20 69 6e 64 69 63 61 74 | 65 73 20 68 6f 77 20 6d | indicat|es how m|
|00001750| 61 6e 79 20 63 61 6c 6c | 20 66 72 61 6d 65 73 0a |any call| frames.|
|00001760| 74 6f 20 67 6f 20 62 61 | 63 6b 20 62 65 66 6f 72 |to go ba|ck befor|
|00001770| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6f 6e |e the cu|rrent on|
|00001780| 65 2e 0a 0a 23 46 43 6f | 64 65 0a 23 57 72 61 70 |e...#FCo|de.#Wrap|
|00001790| 20 4e 6f 4a 6f 69 6e 0a | 20 20 20 20 28 24 70 61 | NoJoin.| ($pa|
|000017a0| 63 6b 61 67 65 2c 20 24 | 66 69 6c 65 6e 61 6d 65 |ckage, $|filename|
|000017b0| 2c 20 24 6c 69 6e 65 2c | 0a 20 20 20 20 20 24 73 |, $line,|. $s|
|000017c0| 75 62 72 6f 75 74 69 6e | 65 2c 20 24 68 61 73 61 |ubroutin|e, $hasa|
|000017d0| 72 67 73 2c 20 24 77 61 | 6e 74 61 72 67 73 29 20 |rgs, $wa|ntargs) |
|000017e0| 3d 20 63 61 6c 6c 65 72 | 28 24 69 29 3b 0a 23 57 |= caller|($i);.#W|
|000017f0| 72 61 70 0a 23 46 0a 0a | 46 75 72 74 68 65 72 6d |rap.#F..|Furtherm|
|00001800| 6f 72 65 2c 20 77 68 65 | 6e 20 63 61 6c 6c 65 64 |ore, whe|n called|
|00001810| 20 66 72 6f 6d 20 77 69 | 74 68 69 6e 20 74 68 65 | from wi|thin the|
|00001820| 20 44 42 20 70 61 63 6b | 61 67 65 2c 20 63 61 6c | DB pack|age, cal|
|00001830| 6c 65 72 20 72 65 74 75 | 72 6e 73 20 6d 6f 72 65 |ler retu|rns more|
|00001840| 0a 64 65 74 61 69 6c 65 | 64 20 69 6e 66 6f 72 6d |.detaile|d inform|
|00001850| 61 74 69 6f 6e 3a 20 69 | 74 20 73 65 74 73 20 73 |ation: i|t sets s|
|00001860| 65 74 73 20 74 68 65 20 | 6c 69 73 74 20 76 61 72 |ets the |list var|
|00001870| 69 61 62 6c 65 20 40 44 | 42 3a 61 72 67 73 20 74 |iable @D|B:args t|
|00001880| 6f 20 62 65 20 74 68 65 | 0a 61 72 67 75 6d 65 6e |o be the|.argumen|
|00001890| 74 73 20 77 69 74 68 20 | 77 68 69 63 68 20 74 68 |ts with |which th|
|000018a0| 61 74 20 73 75 62 72 6f | 75 74 69 6e 65 20 77 61 |at subro|utine wa|
|000018b0| 73 20 69 6e 76 6f 6b 65 | 64 2e 0a 0a 44 41 54 41 |s invoke|d...DATA|
|000018c0| 0f 01 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |....Perl| functio|
|000018d0| 6e 73 20 2d 20 63 68 64 | 69 72 0a 23 70 61 72 65 |ns - chd|ir.#pare|
|000018e0| 6e 74 20 70 65 72 6c 66 | 75 6e 63 0a 23 77 72 61 |nt perlf|unc.#wra|
|000018f0| 70 20 6f 6e 0a 23 49 6e | 64 65 6e 74 20 33 0a 23 |p on.#In|dent 3.#|
|00001900| 49 6e 64 65 6e 74 20 30 | 0a 63 68 64 69 72 20 45 |Indent 0|.chdir E|
|00001910| 58 50 52 0a 23 49 6e 64 | 65 6e 74 20 33 0a 0a 43 |XPR.#Ind|ent 3..C|
|00001920| 68 61 6e 67 65 73 20 74 | 68 65 20 77 6f 72 6b 69 |hanges t|he worki|
|00001930| 6e 67 20 64 69 72 65 63 | 74 6f 72 79 20 74 6f 20 |ng direc|tory to |
|00001940| 45 58 50 52 2c 20 69 66 | 20 70 6f 73 73 69 62 6c |EXPR, if| possibl|
|00001950| 65 2e 20 20 49 66 20 45 | 58 50 52 20 69 73 0a 6f |e. If E|XPR is.o|
|00001960| 6d 69 74 74 65 64 2c 20 | 63 68 61 6e 67 65 73 20 |mitted, |changes |
|00001970| 74 6f 20 68 6f 6d 65 20 | 64 69 72 65 63 74 6f 72 |to home |director|
|00001980| 79 2e 20 20 52 65 74 75 | 72 6e 73 20 54 52 55 45 |y. Retu|rns TRUE|
|00001990| 20 75 70 6f 6e 20 73 75 | 63 63 65 73 73 2c 20 46 | upon su|ccess, F|
|000019a0| 41 4c 53 45 0a 6f 74 68 | 65 72 77 69 73 65 2e 20 |ALSE.oth|erwise. |
|000019b0| 20 53 65 65 20 65 78 61 | 6d 70 6c 65 20 75 6e 64 | See exa|mple und|
|000019c0| 65 72 20 64 69 65 28 29 | 2e 0a 0a 00 44 41 54 41 |er die()|....DATA|
|000019d0| 5f 01 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |_...Perl| functio|
|000019e0| 6e 73 20 2d 20 63 68 6d | 6f 64 0a 23 70 61 72 65 |ns - chm|od.#pare|
|000019f0| 6e 74 20 70 65 72 6c 66 | 75 6e 63 0a 23 77 72 61 |nt perlf|unc.#wra|
|00001a00| 70 20 6f 6e 0a 23 49 6e | 64 65 6e 74 20 33 0a 23 |p on.#In|dent 3.#|
|00001a10| 49 6e 64 65 6e 74 20 30 | 0a 63 68 6d 6f 64 20 4c |Indent 0|.chmod L|
|00001a20| 49 53 54 0a 23 49 6e 64 | 65 6e 74 20 33 0a 0a 43 |IST.#Ind|ent 3..C|
|00001a30| 68 61 6e 67 65 73 20 74 | 68 65 20 70 65 72 6d 69 |hanges t|he permi|
|00001a40| 73 73 69 6f 6e 73 20 6f | 66 20 61 20 6c 69 73 74 |ssions o|f a list|
|00001a50| 20 6f 66 20 66 69 6c 65 | 73 2e 20 20 54 68 65 20 | of file|s. The |
|00001a60| 66 69 72 73 74 20 65 6c | 65 6d 65 6e 74 20 6f 66 |first el|ement of|
|00001a70| 20 74 68 65 0a 6c 69 73 | 74 20 6d 75 73 74 20 62 | the.lis|t must b|
|00001a80| 65 20 74 68 65 20 6e 75 | 6d 65 72 69 63 61 6c 20 |e the nu|merical |
|00001a90| 6d 6f 64 65 2e 20 20 52 | 65 74 75 72 6e 73 20 74 |mode. R|eturns t|
|00001aa0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 66 69 6c |he numbe|r of fil|
|00001ab0| 65 73 0a 73 75 63 63 65 | 73 73 66 75 6c 6c 79 20 |es.succe|ssfully |
|00001ac0| 63 68 61 6e 67 65 64 2e | 0a 0a 23 46 43 6f 64 65 |changed.|..#FCode|
|00001ad0| 0a 23 57 72 61 70 20 4e | 6f 4a 6f 69 6e 0a 20 20 |.#Wrap N|oJoin. |
|00001ae0| 20 20 24 63 6e 74 20 3d | 20 63 68 6d 6f 64 20 30 | $cnt =| chmod 0|
|00001af0| 37 35 35 2c 20 27 66 6f | 6f 27 2c 20 27 62 61 72 |755, 'fo|o', 'bar|
|00001b00| 27 3b 0a 20 20 20 20 63 | 68 6d 6f 64 20 30 37 35 |';. c|hmod 075|
|00001b10| 35 2c 20 40 65 78 65 63 | 75 74 61 62 6c 65 73 3b |5, @exec|utables;|
|00001b20| 0a 23 57 72 61 70 0a 23 | 46 0a 0a 00 44 41 54 41 |.#Wrap.#|F...DATA|
|00001b30| 59 04 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |Y...Perl| functio|
|00001b40| 6e 73 20 2d 20 63 68 6f | 6d 70 0a 23 70 61 72 65 |ns - cho|mp.#pare|
|00001b50| 6e 74 20 70 65 72 6c 66 | 75 6e 63 0a 23 77 72 61 |nt perlf|unc.#wra|
|00001b60| 70 20 6f 6e 0a 23 49 6e | 64 65 6e 74 20 33 0a 23 |p on.#In|dent 3.#|
|00001b70| 49 6e 64 65 6e 74 20 30 | 0a 63 68 6f 6d 70 20 56 |Indent 0|.chomp V|
|00001b80| 41 52 49 41 42 4c 45 0a | 23 49 6e 64 65 6e 74 20 |ARIABLE.|#Indent |
|00001b90| 33 0a 23 49 6e 64 65 6e | 74 20 30 0a 63 68 6f 6d |3.#Inden|t 0.chom|
|00001ba0| 70 20 4c 49 53 54 0a 23 | 49 6e 64 65 6e 74 20 33 |p LIST.#|Indent 3|
|00001bb0| 0a 23 49 6e 64 65 6e 74 | 20 30 0a 63 68 6f 6d 70 |.#Indent| 0.chomp|
|00001bc0| 0a 23 49 6e 64 65 6e 74 | 20 33 0a 0a 54 68 69 73 |.#Indent| 3..This|
|00001bd0| 20 69 73 20 61 20 73 6c | 69 67 68 74 6c 79 20 73 | is a sl|ightly s|
|00001be0| 61 66 65 72 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |afer ver|sion of |
|00001bf0| 63 68 6f 70 20 28 73 65 | 65 20 62 65 6c 6f 77 29 |chop (se|e below)|
|00001c00| 2e 20 20 49 74 20 72 65 | 6d 6f 76 65 73 20 61 6e |. It re|moves an|
|00001c10| 79 0a 6c 69 6e 65 20 65 | 6e 64 69 6e 67 20 74 68 |y.line e|nding th|
|00001c20| 61 74 20 63 6f 72 72 65 | 73 70 6f 6e 64 73 20 74 |at corre|sponds t|
|00001c30| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 76 61 |o the cu|rrent va|
|00001c40| 6c 75 65 20 6f 66 20 7b | 66 43 6f 64 65 7d 24 5c |lue of {|fCode}$\|
|00001c50| 2f 7b 66 7d 20 28 61 6c | 73 6f 20 6b 6e 6f 77 6e |/{f} (al|so known|
|00001c60| 20 61 73 0a 24 49 4e 50 | 55 54 5c 5f 52 45 43 4f | as.$INP|UT\_RECO|
|00001c70| 52 44 5c 5f 53 45 50 41 | 52 41 54 4f 52 20 69 6e |RD\_SEPA|RATOR in|
|00001c80| 20 74 68 65 20 7b 66 43 | 6f 64 65 7d 45 6e 67 6c | the {fC|ode}Engl|
|00001c90| 69 73 68 7b 66 7d 20 6d | 6f 64 75 6c 65 29 2e 20 |ish{f} m|odule). |
|00001ca0| 20 49 74 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 | It retu|rns the |
|00001cb0| 6e 75 6d 62 65 72 0a 6f | 66 20 63 68 61 72 61 63 |number.o|f charac|
|00001cc0| 74 65 72 73 20 72 65 6d | 6f 76 65 64 2e 20 20 49 |ters rem|oved. I|
|00001cd0| 74 27 73 20 6f 66 74 65 | 6e 20 75 73 65 64 20 74 |t's ofte|n used t|
|00001ce0| 6f 20 72 65 6d 6f 76 65 | 20 74 68 65 20 6e 65 77 |o remove| the new|
|00001cf0| 6c 69 6e 65 20 66 72 6f | 6d 20 74 68 65 0a 65 6e |line fro|m the.en|
|00001d00| 64 20 6f 66 20 61 6e 20 | 69 6e 70 75 74 20 72 65 |d of an |input re|
|00001d10| 63 6f 72 64 20 77 68 65 | 6e 20 79 6f 75 27 72 65 |cord whe|n you're|
|00001d20| 20 77 6f 72 72 69 65 64 | 20 74 68 61 74 20 74 68 | worried| that th|
|00001d30| 65 20 66 69 6e 61 6c 20 | 72 65 63 6f 72 64 20 6d |e final |record m|
|00001d40| 61 79 20 62 65 0a 6d 69 | 73 73 69 6e 67 20 69 74 |ay be.mi|ssing it|
|00001d50| 73 20 6e 65 77 6c 69 6e | 65 2e 20 20 57 68 65 6e |s newlin|e. When|
|00001d60| 20 69 6e 20 70 61 72 61 | 67 72 61 70 68 20 6d 6f | in para|graph mo|
|00001d70| 64 65 20 28 7b 66 43 6f | 64 65 7d 24 5c 2f 20 3d |de ({fCo|de}$\/ =|
|00001d80| 20 22 22 7b 66 7d 29 2c | 20 69 74 20 72 65 6d 6f | ""{f}),| it remo|
|00001d90| 76 65 73 20 61 6c 6c 0a | 74 72 61 69 6c 69 6e 67 |ves all.|trailing|
|00001da0| 20 6e 65 77 6c 69 6e 65 | 73 20 66 72 6f 6d 20 74 | newline|s from t|
|00001db0| 68 65 20 73 74 72 69 6e | 67 2e 20 20 49 66 20 56 |he strin|g. If V|
|00001dc0| 41 52 49 41 42 4c 45 20 | 69 73 20 6f 6d 69 74 74 |ARIABLE |is omitt|
|00001dd0| 65 64 2c 20 69 74 20 63 | 68 6f 6d 70 73 0a 24 5c |ed, it c|homps.$\|
|00001de0| 5f 2e 20 20 45 78 61 6d | 70 6c 65 3a 0a 0a 23 46 |_. Exam|ple:..#F|
|00001df0| 43 6f 64 65 0a 23 57 72 | 61 70 20 4e 6f 4a 6f 69 |Code.#Wr|ap NoJoi|
|00001e00| 6e 0a 20 20 20 20 77 68 | 69 6c 65 20 28 5c 3c 5c |n. wh|ile (\<\|
|00001e10| 3e 29 20 5c 7b 0a 20 20 | 20 20 20 20 20 20 63 68 |>) \{. | ch|
|00001e20| 6f 6d 70 3b 20 20 23 20 | 61 76 6f 69 64 20 5c 5c |omp; # |avoid \\|
|00001e30| 6e 20 6f 6e 20 6c 61 73 | 74 20 66 69 65 6c 64 0a |n on las|t field.|
|00001e40| 20 20 20 20 20 20 20 20 | 40 61 72 72 61 79 20 3d | |@array =|
|00001e50| 20 73 70 6c 69 74 28 5c | 2f 3a 5c 2f 29 3b 0a 20 | split(\|/:\/);. |
|00001e60| 20 20 20 20 20 20 20 2e | 2e 2e 0a 20 20 20 20 7d | .|... }|
|00001e70| 0a 23 57 72 61 70 0a 23 | 46 0a 0a 59 6f 75 20 63 |.#Wrap.#|F..You c|
|00001e80| 61 6e 20 61 63 74 75 61 | 6c 6c 79 20 63 68 6f 6d |an actua|lly chom|
|00001e90| 70 20 61 6e 79 74 68 69 | 6e 67 20 74 68 61 74 27 |p anythi|ng that'|
|00001ea0| 73 20 61 6e 20 6c 76 61 | 6c 75 65 2c 20 69 6e 63 |s an lva|lue, inc|
|00001eb0| 6c 75 64 69 6e 67 20 61 | 6e 20 61 73 73 69 67 6e |luding a|n assign|
|00001ec0| 6d 65 6e 74 3a 0a 0a 23 | 46 43 6f 64 65 0a 23 57 |ment:..#|FCode.#W|
|00001ed0| 72 61 70 20 4e 6f 4a 6f | 69 6e 0a 20 20 20 20 63 |rap NoJo|in. c|
|00001ee0| 68 6f 6d 70 28 24 63 77 | 64 20 3d 20 60 70 77 64 |homp($cw|d = `pwd|
|00001ef0| 60 29 3b 0a 20 20 20 20 | 63 68 6f 6d 70 28 24 61 |`);. |chomp($a|
|00001f00| 6e 73 77 65 72 20 3d 20 | 5c 3c 53 54 44 49 4e 5c |nswer = |\<STDIN\|
|00001f10| 3e 29 3b 0a 23 57 72 61 | 70 0a 23 46 0a 0a 49 66 |>);.#Wra|p.#F..If|
|00001f20| 20 79 6f 75 20 63 68 6f | 6d 70 20 61 20 6c 69 73 | you cho|mp a lis|
|00001f30| 74 2c 20 65 61 63 68 20 | 65 6c 65 6d 65 6e 74 20 |t, each |element |
|00001f40| 69 73 20 63 68 6f 6d 70 | 65 64 2c 20 61 6e 64 20 |is chomp|ed, and |
|00001f50| 74 68 65 20 74 6f 74 61 | 6c 20 6e 75 6d 62 65 72 |the tota|l number|
|00001f60| 20 6f 66 0a 63 68 61 72 | 61 63 74 65 72 73 20 72 | of.char|acters r|
|00001f70| 65 6d 6f 76 65 64 20 69 | 73 20 72 65 74 75 72 6e |emoved i|s return|
|00001f80| 65 64 2e 0a 0a 00 00 00 | 44 41 54 41 c9 03 00 00 |ed......|DATA....|
|00001f90| 50 65 72 6c 20 66 75 6e | 63 74 69 6f 6e 73 20 2d |Perl fun|ctions -|
|00001fa0| 20 63 68 6f 70 0a 23 70 | 61 72 65 6e 74 20 70 65 | chop.#p|arent pe|
|00001fb0| 72 6c 66 75 6e 63 0a 23 | 77 72 61 70 20 6f 6e 0a |rlfunc.#|wrap on.|
|00001fc0| 23 49 6e 64 65 6e 74 20 | 33 0a 23 49 6e 64 65 6e |#Indent |3.#Inden|
|00001fd0| 74 20 30 0a 63 68 6f 70 | 20 56 41 52 49 41 42 4c |t 0.chop| VARIABL|
|00001fe0| 45 0a 23 49 6e 64 65 6e | 74 20 33 0a 23 49 6e 64 |E.#Inden|t 3.#Ind|
|00001ff0| 65 6e 74 20 30 0a 63 68 | 6f 70 20 4c 49 53 54 0a |ent 0.ch|op LIST.|
|00002000| 23 49 6e 64 65 6e 74 20 | 33 0a 23 49 6e 64 65 6e |#Indent |3.#Inden|
|00002010| 74 20 30 0a 63 68 6f 70 | 0a 23 49 6e 64 65 6e 74 |t 0.chop|.#Indent|
|00002020| 20 33 0a 0a 43 68 6f 70 | 73 20 6f 66 66 20 74 68 | 3..Chop|s off th|
|00002030| 65 20 6c 61 73 74 20 63 | 68 61 72 61 63 74 65 72 |e last c|haracter|
|00002040| 20 6f 66 20 61 20 73 74 | 72 69 6e 67 20 61 6e 64 | of a st|ring and|
|00002050| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 63 68 61 | returns| the cha|
|00002060| 72 61 63 74 65 72 0a 63 | 68 6f 70 70 65 64 2e 20 |racter.c|hopped. |
|00002070| 20 49 74 27 73 20 75 73 | 65 64 20 70 72 69 6d 61 | It's us|ed prima|
|00002080| 72 69 6c 79 20 74 6f 20 | 72 65 6d 6f 76 65 20 74 |rily to |remove t|
|00002090| 68 65 20 6e 65 77 6c 69 | 6e 65 20 66 72 6f 6d 20 |he newli|ne from |
|000020a0| 74 68 65 20 65 6e 64 20 | 6f 66 20 61 6e 0a 69 6e |the end |of an.in|
|000020b0| 70 75 74 20 72 65 63 6f | 72 64 2c 20 62 75 74 20 |put reco|rd, but |
|000020c0| 69 73 20 6d 75 63 68 20 | 6d 6f 72 65 20 65 66 66 |is much |more eff|
|000020d0| 69 63 69 65 6e 74 20 74 | 68 61 6e 20 7b 66 43 6f |icient t|han {fCo|
|000020e0| 64 65 7d 73 5c 2f 5c 5c | 6e 5c 2f 5c 2f 7b 66 7d |de}s\/\\|n\/\/{f}|
|000020f0| 20 62 65 63 61 75 73 65 | 20 69 74 20 6e 65 69 74 | because| it neit|
|00002100| 68 65 72 0a 73 63 61 6e | 73 20 6e 6f 72 20 63 6f |her.scan|s nor co|
|00002110| 70 69 65 73 20 74 68 65 | 20 73 74 72 69 6e 67 2e |pies the| string.|
|00002120| 20 20 49 66 20 56 41 52 | 49 41 42 4c 45 20 69 73 | If VAR|IABLE is|
|00002130| 20 6f 6d 69 74 74 65 64 | 2c 20 63 68 6f 70 73 20 | omitted|, chops |
|00002140| 24 5c 5f 2e 0a 45 78 61 | 6d 70 6c 65 3a 0a 0a 23 |$\_..Exa|mple:..#|
|00002150| 46 43 6f 64 65 0a 23 57 | 72 61 70 20 4e 6f 4a 6f |FCode.#W|rap NoJo|
|00002160| 69 6e 0a 20 20 20 20 77 | 68 69 6c 65 20 28 5c 3c |in. w|hile (\<|
|00002170| 5c 3e 29 20 5c 7b 0a 20 | 20 20 20 20 20 20 20 63 |\>) \{. | c|
|00002180| 68 6f 70 3b 20 20 20 23 | 20 61 76 6f 69 64 20 5c |hop; #| avoid \|
|00002190| 5c 6e 20 6f 6e 20 6c 61 | 73 74 20 66 69 65 6c 64 |\n on la|st field|
|000021a0| 0a 20 20 20 20 20 20 20 | 20 40 61 72 72 61 79 20 |. | @array |
|000021b0| 3d 20 73 70 6c 69 74 28 | 5c 2f 3a 5c 2f 29 3b 0a |= split(|\/:\/);.|
|000021c0| 20 20 20 20 20 20 20 20 | 2e 2e 2e 0a 20 20 20 20 | |.... |
|000021d0| 7d 0a 23 57 72 61 70 0a | 23 46 0a 0a 59 6f 75 20 |}.#Wrap.|#F..You |
|000021e0| 63 61 6e 20 61 63 74 75 | 61 6c 6c 79 20 63 68 6f |can actu|ally cho|
|000021f0| 70 20 61 6e 79 74 68 69 | 6e 67 20 74 68 61 74 27 |p anythi|ng that'|
|00002200| 73 20 61 6e 20 6c 76 61 | 6c 75 65 2c 20 69 6e 63 |s an lva|lue, inc|
|00002210| 6c 75 64 69 6e 67 20 61 | 6e 20 61 73 73 69 67 6e |luding a|n assign|
|00002220| 6d 65 6e 74 3a 0a 0a 23 | 46 43 6f 64 65 0a 23 57 |ment:..#|FCode.#W|
|00002230| 72 61 70 20 4e 6f 4a 6f | 69 6e 0a 20 20 20 20 63 |rap NoJo|in. c|
|00002240| 68 6f 70 28 24 63 77 64 | 20 3d 20 60 70 77 64 60 |hop($cwd| = `pwd`|
|00002250| 29 3b 0a 20 20 20 20 63 | 68 6f 70 28 24 61 6e 73 |);. c|hop($ans|
|00002260| 77 65 72 20 3d 20 5c 3c | 53 54 44 49 4e 5c 3e 29 |wer = \<|STDIN\>)|
|00002270| 3b 0a 23 57 72 61 70 0a | 23 46 0a 0a 49 66 20 79 |;.#Wrap.|#F..If y|
|00002280| 6f 75 20 63 68 6f 70 20 | 61 20 6c 69 73 74 2c 20 |ou chop |a list, |
|00002290| 65 61 63 68 20 65 6c 65 | 6d 65 6e 74 20 69 73 20 |each ele|ment is |
|000022a0| 63 68 6f 70 70 65 64 2e | 20 20 4f 6e 6c 79 20 74 |chopped.| Only t|
|000022b0| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 0a |he value| of the.|
|000022c0| 6c 61 73 74 20 63 68 6f | 70 20 69 73 20 72 65 74 |last cho|p is ret|
|000022d0| 75 72 6e 65 64 2e 0a 0a | 4e 6f 74 65 20 74 68 61 |urned...|Note tha|
|000022e0| 74 20 63 68 6f 70 20 72 | 65 74 75 72 6e 73 20 74 |t chop r|eturns t|
|000022f0| 68 65 20 6c 61 73 74 20 | 63 68 61 72 61 63 74 65 |he last |characte|
|00002300| 72 2e 20 20 54 6f 20 72 | 65 74 75 72 6e 20 61 6c |r. To r|eturn al|
|00002310| 6c 20 62 75 74 20 74 68 | 65 20 6c 61 73 74 0a 63 |l but th|e last.c|
|00002320| 68 61 72 61 63 74 65 72 | 2c 20 75 73 65 20 7b 66 |haracter|, use {f|
|00002330| 43 6f 64 65 7d 73 75 62 | 73 74 72 28 24 73 74 72 |Code}sub|str($str|
|00002340| 69 6e 67 2c 20 30 2c 20 | 99 31 29 7b 66 7d 2e 0a |ing, 0, |.1){f}..|
|00002350| 0a 00 00 00 44 41 54 41 | 40 03 00 00 50 65 72 6c |....DATA|@...Perl|
|00002360| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 63 68 6f | functio|ns - cho|
|00002370| 77 6e 0a 23 70 61 72 65 | 6e 74 20 70 65 72 6c 66 |wn.#pare|nt perlf|
|00002380| 75 6e 63 0a 23 77 72 61 | 70 20 6f 6e 0a 23 49 6e |unc.#wra|p on.#In|
|00002390| 64 65 6e 74 20 33 0a 23 | 49 6e 64 65 6e 74 20 30 |dent 3.#|Indent 0|
|000023a0| 0a 63 68 6f 77 6e 20 4c | 49 53 54 0a 23 49 6e 64 |.chown L|IST.#Ind|
|000023b0| 65 6e 74 20 33 0a 0a 43 | 68 61 6e 67 65 73 20 74 |ent 3..C|hanges t|
|000023c0| 68 65 20 6f 77 6e 65 72 | 20 28 61 6e 64 20 67 72 |he owner| (and gr|
|000023d0| 6f 75 70 29 20 6f 66 20 | 61 20 6c 69 73 74 20 6f |oup) of |a list o|
|000023e0| 66 20 66 69 6c 65 73 2e | 20 20 54 68 65 20 66 69 |f files.| The fi|
|000023f0| 72 73 74 20 74 77 6f 0a | 65 6c 65 6d 65 6e 74 73 |rst two.|elements|
|00002400| 20 6f 66 20 74 68 65 20 | 6c 69 73 74 20 6d 75 73 | of the |list mus|
|00002410| 74 20 62 65 20 74 68 65 | 20 7b 2f 7d 4e 55 4d 45 |t be the| {/}NUME|
|00002420| 52 49 43 41 4c 7b 2f 7d | 20 75 69 64 20 61 6e 64 |RICAL{/}| uid and|
|00002430| 20 67 69 64 2c 20 69 6e | 20 74 68 61 74 20 6f 72 | gid, in| that or|
|00002440| 64 65 72 2e 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |der..Ret|urns the|
|00002450| 20 6e 75 6d 62 65 72 20 | 6f 66 20 66 69 6c 65 73 | number |of files|
|00002460| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 63 68 | success|fully ch|
|00002470| 61 6e 67 65 64 2e 0a 0a | 23 46 43 6f 64 65 0a 23 |anged...|#FCode.#|
|00002480| 57 72 61 70 20 4e 6f 4a | 6f 69 6e 0a 20 20 20 20 |Wrap NoJ|oin. |
|00002490| 24 63 6e 74 20 3d 20 63 | 68 6f 77 6e 20 24 75 69 |$cnt = c|hown $ui|
|000024a0| 64 2c 20 24 67 69 64 2c | 20 27 66 6f 6f 27 2c 20 |d, $gid,| 'foo', |
|000024b0| 27 62 61 72 27 3b 0a 20 | 20 20 20 63 68 6f 77 6e |'bar';. | chown|
|000024c0| 20 24 75 69 64 2c 20 24 | 67 69 64 2c 20 40 66 69 | $uid, $|gid, @fi|
|000024d0| 6c 65 6e 61 6d 65 73 3b | 0a 23 57 72 61 70 0a 23 |lenames;|.#Wrap.#|
|000024e0| 46 0a 0a 48 65 72 65 27 | 73 20 61 6e 20 65 78 61 |F..Here'|s an exa|
|000024f0| 6d 70 6c 65 20 74 68 61 | 74 20 6c 6f 6f 6b 73 20 |mple tha|t looks |
|00002500| 75 70 20 6e 6f 6e 99 6e | 75 6d 65 72 69 63 20 75 |up non.n|umeric u|
|00002510| 69 64 73 20 69 6e 20 74 | 68 65 20 70 61 73 73 77 |ids in t|he passw|
|00002520| 64 20 66 69 6c 65 3a 0a | 0a 23 46 43 6f 64 65 0a |d file:.|.#FCode.|
|00002530| 23 57 72 61 70 20 4e 6f | 4a 6f 69 6e 0a 20 20 20 |#Wrap No|Join. |
|00002540| 20 70 72 69 6e 74 20 22 | 55 73 65 72 3a 20 22 3b | print "|User: ";|
|00002550| 0a 20 20 20 20 63 68 6f | 70 28 24 75 73 65 72 20 |. cho|p($user |
|00002560| 3d 20 5c 3c 53 54 44 49 | 4e 5c 3e 29 3b 0a 20 20 |= \<STDI|N\>);. |
|00002570| 20 20 70 72 69 6e 74 20 | 22 46 69 6c 65 73 3a 20 | print |"Files: |
|00002580| 22 0a 20 20 20 20 63 68 | 6f 70 28 24 70 61 74 74 |". ch|op($patt|
|00002590| 65 72 6e 20 3d 20 5c 3c | 53 54 44 49 4e 5c 3e 29 |ern = \<|STDIN\>)|
|000025a0| 3b 0a 23 57 72 61 70 0a | 23 46 0a 0a 23 46 43 6f |;.#Wrap.|#F..#FCo|
|000025b0| 64 65 0a 23 57 72 61 70 | 20 4e 6f 4a 6f 69 6e 0a |de.#Wrap| NoJoin.|
|000025c0| 20 20 20 20 28 24 6c 6f | 67 69 6e 2c 24 70 61 73 | ($lo|gin,$pas|
|000025d0| 73 2c 24 75 69 64 2c 24 | 67 69 64 29 20 3d 20 67 |s,$uid,$|gid) = g|
|000025e0| 65 74 70 77 6e 61 6d 28 | 24 75 73 65 72 29 0a 20 |etpwnam(|$user). |
|000025f0| 20 20 20 20 20 20 20 6f | 72 20 64 69 65 20 22 24 | o|r die "$|
|00002600| 75 73 65 72 20 6e 6f 74 | 20 69 6e 20 70 61 73 73 |user not| in pass|
|00002610| 77 64 20 66 69 6c 65 22 | 3b 0a 23 57 72 61 70 0a |wd file"|;.#Wrap.|
|00002620| 23 46 0a 0a 23 46 43 6f | 64 65 0a 23 57 72 61 70 |#F..#FCo|de.#Wrap|
|00002630| 20 4e 6f 4a 6f 69 6e 0a | 20 20 20 20 40 61 72 79 | NoJoin.| @ary|
|00002640| 20 3d 20 5c 3c 24 5c 7b | 70 61 74 74 65 72 6e 7d | = \<$\{|pattern}|
|00002650| 5c 3e 3b 20 20 20 20 20 | 20 20 20 23 20 65 78 70 |\>; | # exp|
|00002660| 61 6e 64 20 66 69 6c 65 | 6e 61 6d 65 73 0a 20 20 |and file|names. |
|00002670| 20 20 63 68 6f 77 6e 20 | 24 75 69 64 2c 20 24 67 | chown |$uid, $g|
|00002680| 69 64 2c 20 40 61 72 79 | 3b 0a 23 57 72 61 70 0a |id, @ary|;.#Wrap.|
|00002690| 23 46 0a 0a 44 41 54 41 | d9 00 00 00 50 65 72 6c |#F..DATA|....Perl|
|000026a0| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 63 68 72 | functio|ns - chr|
|000026b0| 0a 23 70 61 72 65 6e 74 | 20 70 65 72 6c 66 75 6e |.#parent| perlfun|
|000026c0| 63 0a 23 77 72 61 70 20 | 6f 6e 0a 23 49 6e 64 65 |c.#wrap |on.#Inde|
|000026d0| 6e 74 20 33 0a 23 49 6e | 64 65 6e 74 20 30 0a 63 |nt 3.#In|dent 0.c|
|000026e0| 68 72 20 4e 55 4d 42 45 | 52 0a 23 49 6e 64 65 6e |hr NUMBE|R.#Inden|
|000026f0| 74 20 33 0a 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |t 3..Ret|urns the|
|00002700| 20 63 68 61 72 61 63 74 | 65 72 20 72 65 70 72 65 | charact|er repre|
|00002710| 73 65 6e 74 65 64 20 62 | 79 20 74 68 61 74 20 4e |sented b|y that N|
|00002720| 55 4d 42 45 52 20 69 6e | 20 74 68 65 20 63 68 61 |UMBER in| the cha|
|00002730| 72 61 63 74 65 72 20 73 | 65 74 2e 0a 46 6f 72 20 |racter s|et..For |
|00002740| 65 78 61 6d 70 6c 65 2c | 20 7b 66 43 6f 64 65 7d |example,| {fCode}|
|00002750| 63 68 72 28 36 35 29 7b | 66 7d 20 69 73 20 22 41 |chr(65){|f} is "A|
|00002760| 22 20 69 6e 20 41 53 43 | 49 49 2e 0a 0a 00 00 00 |" in ASC|II......|
|00002770| 44 41 54 41 fd 00 00 00 | 50 65 72 6c 20 66 75 6e |DATA....|Perl fun|
|00002780| 63 74 69 6f 6e 73 20 2d | 20 63 68 72 6f 6f 74 0a |ctions -| chroot.|
|00002790| 23 70 61 72 65 6e 74 20 | 70 65 72 6c 66 75 6e 63 |#parent |perlfunc|
|000027a0| 0a 23 77 72 61 70 20 6f | 6e 0a 23 49 6e 64 65 6e |.#wrap o|n.#Inden|
|000027b0| 74 20 33 0a 23 49 6e 64 | 65 6e 74 20 30 0a 63 68 |t 3.#Ind|ent 0.ch|
|000027c0| 72 6f 6f 74 20 46 49 4c | 45 4e 41 4d 45 0a 23 49 |root FIL|ENAME.#I|
|000027d0| 6e 64 65 6e 74 20 33 0a | 0a 44 6f 65 73 20 74 68 |ndent 3.|.Does th|
|000027e0| 65 20 73 61 6d 65 20 61 | 73 20 74 68 65 20 73 79 |e same a|s the sy|
|000027f0| 73 74 65 6d 20 63 61 6c | 6c 20 6f 66 20 74 68 61 |stem cal|l of tha|
|00002800| 74 20 6e 61 6d 65 2e 20 | 20 49 66 20 79 6f 75 20 |t name. | If you |
|00002810| 64 6f 6e 27 74 20 6b 6e | 6f 77 20 77 68 61 74 0a |don't kn|ow what.|
|00002820| 69 74 20 64 6f 65 73 2c | 20 64 6f 6e 27 74 20 77 |it does,| don't w|
|00002830| 6f 72 72 79 20 61 62 6f | 75 74 20 69 74 2e 20 20 |orry abo|ut it. |
|00002840| 49 66 20 46 49 4c 45 4e | 41 4d 45 20 69 73 20 6f |If FILEN|AME is o|
|00002850| 6d 69 74 74 65 64 2c 20 | 64 6f 65 73 20 63 68 72 |mitted, |does chr|
|00002860| 6f 6f 74 20 74 6f 0a 24 | 5c 5f 2e 0a 0a 00 00 00 |oot to.$|\_......|
|00002870| 44 41 54 41 43 04 00 00 | 50 65 72 6c 20 66 75 6e |DATAC...|Perl fun|
|00002880| 63 74 69 6f 6e 73 20 2d | 20 63 6c 6f 73 65 0a 23 |ctions -| close.#|
|00002890| 70 61 72 65 6e 74 20 70 | 65 72 6c 66 75 6e 63 0a |parent p|erlfunc.|
|000028a0| 23 77 72 61 70 20 6f 6e | 0a 23 49 6e 64 65 6e 74 |#wrap on|.#Indent|
|000028b0| 20 33 0a 23 49 6e 64 65 | 6e 74 20 30 0a 63 6c 6f | 3.#Inde|nt 0.clo|
|000028c0| 73 65 20 46 49 4c 45 48 | 41 4e 44 4c 45 0a 23 49 |se FILEH|ANDLE.#I|
|000028d0| 6e 64 65 6e 74 20 33 0a | 0a 43 6c 6f 73 65 73 20 |ndent 3.|.Closes |
|000028e0| 74 68 65 20 66 69 6c 65 | 20 6f 72 20 70 69 70 65 |the file| or pipe|
|000028f0| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00002900| 20 74 68 65 20 66 69 6c | 65 20 68 61 6e 64 6c 65 | the fil|e handle|
|00002910| 2c 20 72 65 74 75 72 6e | 69 6e 67 20 54 52 55 45 |, return|ing TRUE|
|00002920| 0a 6f 6e 6c 79 20 69 66 | 20 73 74 64 69 6f 20 73 |.only if| stdio s|
|00002930| 75 63 63 65 73 73 66 75 | 6c 6c 79 20 66 6c 75 73 |uccessfu|lly flus|
|00002940| 68 65 73 20 62 75 66 66 | 65 72 73 20 61 6e 64 20 |hes buff|ers and |
|00002950| 63 6c 6f 73 65 73 20 74 | 68 65 20 73 79 73 74 65 |closes t|he syste|
|00002960| 6d 20 66 69 6c 65 0a 64 | 65 73 63 72 69 70 74 6f |m file.d|escripto|
|00002970| 72 2e 20 20 59 6f 75 20 | 64 6f 6e 27 74 20 68 61 |r. You |don't ha|
|00002980| 76 65 20 74 6f 20 63 6c | 6f 73 65 20 46 49 4c 45 |ve to cl|ose FILE|
|00002990| 48 41 4e 44 4c 45 20 69 | 66 20 79 6f 75 20 61 72 |HANDLE i|f you ar|
|000029a0| 65 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 0a 67 6f |e immedi|ately.go|
|000029b0| 69 6e 67 20 74 6f 20 64 | 6f 20 61 6e 6f 74 68 65 |ing to d|o anothe|
|000029c0| 72 20 6f 70 65 6e 20 6f | 6e 20 69 74 2c 20 73 69 |r open o|n it, si|
|000029d0| 6e 63 65 20 6f 70 65 6e | 20 77 69 6c 6c 20 63 6c |nce open| will cl|
|000029e0| 6f 73 65 20 69 74 20 66 | 6f 72 20 79 6f 75 2e 20 |ose it f|or you. |
|000029f0| 20 28 53 65 65 0a 6f 70 | 65 6e 28 29 2e 29 20 20 | (See.op|en().) |
|00002a00| 48 6f 77 65 76 65 72 2c | 20 61 6e 20 65 78 70 6c |However,| an expl|
|00002a10| 69 63 69 74 20 63 6c 6f | 73 65 20 6f 6e 20 61 6e |icit clo|se on an|
|00002a20| 20 69 6e 70 75 74 20 66 | 69 6c 65 20 72 65 73 65 | input f|ile rese|
|00002a30| 74 73 20 74 68 65 20 6c | 69 6e 65 0a 63 6f 75 6e |ts the l|ine.coun|
|00002a40| 74 65 72 20 28 24 2e 29 | 2c 20 77 68 69 6c 65 20 |ter ($.)|, while |
|00002a50| 74 68 65 20 69 6d 70 6c | 69 63 69 74 20 63 6c 6f |the impl|icit clo|
|00002a60| 73 65 20 64 6f 6e 65 20 | 62 79 20 6f 70 65 6e 28 |se done |by open(|
|00002a70| 29 20 64 6f 65 73 20 6e | 6f 74 2e 20 20 41 6c 73 |) does n|ot. Als|
|00002a80| 6f 2c 0a 63 6c 6f 73 69 | 6e 67 20 61 20 70 69 70 |o,.closi|ng a pip|
|00002a90| 65 20 77 69 6c 6c 20 77 | 61 69 74 20 66 6f 72 20 |e will w|ait for |
|00002aa0| 74 68 65 20 70 72 6f 63 | 65 73 73 20 65 78 65 63 |the proc|ess exec|
|00002ab0| 75 74 69 6e 67 20 6f 6e | 20 74 68 65 20 70 69 70 |uting on| the pip|
|00002ac0| 65 20 74 6f 0a 63 6f 6d | 70 6c 65 74 65 2c 20 69 |e to.com|plete, i|
|00002ad0| 6e 20 63 61 73 65 20 79 | 6f 75 20 77 61 6e 74 20 |n case y|ou want |
|00002ae0| 74 6f 20 6c 6f 6f 6b 20 | 61 74 20 74 68 65 20 6f |to look |at the o|
|00002af0| 75 74 70 75 74 20 6f 66 | 20 74 68 65 20 70 69 70 |utput of| the pip|
|00002b00| 65 0a 61 66 74 65 72 77 | 61 72 64 73 2e 20 20 43 |e.afterw|ards. C|
|00002b10| 6c 6f 73 69 6e 67 20 61 | 20 70 69 70 65 20 65 78 |losing a| pipe ex|
|00002b20| 70 6c 69 63 69 74 6c 79 | 20 61 6c 73 6f 20 70 75 |plicitly| also pu|
|00002b30| 74 73 20 74 68 65 20 73 | 74 61 74 75 73 20 76 61 |ts the s|tatus va|
|00002b40| 6c 75 65 20 6f 66 0a 74 | 68 65 20 63 6f 6d 6d 61 |lue of.t|he comma|
|00002b50| 6e 64 20 69 6e 74 6f 20 | 7b 66 43 6f 64 65 7d 24 |nd into |{fCode}$|
|00002b60| 3f 7b 66 7d 2e 20 20 45 | 78 61 6d 70 6c 65 3a 0a |?{f}. E|xample:.|
|00002b70| 0a 23 46 43 6f 64 65 0a | 23 57 72 61 70 20 4e 6f |.#FCode.|#Wrap No|
|00002b80| 4a 6f 69 6e 0a 20 20 20 | 20 6f 70 65 6e 28 4f 55 |Join. | open(OU|
|00002b90| 54 50 55 54 2c 20 27 7c | 73 6f 72 74 20 5c 3e 66 |TPUT, '||sort \>f|
|00002ba0| 6f 6f 27 29 3b 20 23 20 | 70 69 70 65 20 74 6f 20 |oo'); # |pipe to |
|00002bb0| 73 6f 72 74 0a 20 20 20 | 20 2e 2e 2e 20 20 20 20 |sort. | ... |
|00002bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002bd0| 20 20 20 20 20 23 20 70 | 72 69 6e 74 20 73 74 75 | # p|rint stu|
|00002be0| 66 66 20 74 6f 20 6f 75 | 74 70 75 74 0a 20 20 20 |ff to ou|tput. |
|00002bf0| 20 63 6c 6f 73 65 20 4f | 55 54 50 55 54 3b 20 20 | close O|UTPUT; |
|00002c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 20 77 | | # w|
|00002c10| 61 69 74 20 66 6f 72 20 | 73 6f 72 74 20 74 6f 20 |ait for |sort to |
|00002c20| 66 69 6e 69 73 68 0a 20 | 20 20 20 6f 70 65 6e 28 |finish. | open(|
|00002c30| 49 4e 50 55 54 2c 20 27 | 66 6f 6f 27 29 3b 20 20 |INPUT, '|foo'); |
|00002c40| 20 20 20 20 20 20 20 23 | 20 67 65 74 20 73 6f 72 | #| get sor|
|00002c50| 74 27 73 20 72 65 73 75 | 6c 74 73 0a 23 57 72 61 |t's resu|lts.#Wra|
|00002c60| 70 0a 23 46 0a 0a 46 49 | 4c 45 48 41 4e 44 4c 45 |p.#F..FI|LEHANDLE|
|00002c70| 20 6d 61 79 20 62 65 20 | 61 6e 20 65 78 70 72 65 | may be |an expre|
|00002c80| 73 73 69 6f 6e 20 77 68 | 6f 73 65 20 76 61 6c 75 |ssion wh|ose valu|
|00002c90| 65 20 67 69 76 65 73 20 | 74 68 65 20 72 65 61 6c |e gives |the real|
|00002ca0| 20 66 69 6c 65 68 61 6e | 64 6c 65 20 6e 61 6d 65 | filehan|dle name|
|00002cb0| 2e 0a 0a 00 44 41 54 41 | 97 00 00 00 50 65 72 6c |....DATA|....Perl|
|00002cc0| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 63 6c 6f | functio|ns - clo|
|00002cd0| 73 65 64 69 72 0a 23 70 | 61 72 65 6e 74 20 70 65 |sedir.#p|arent pe|
|00002ce0| 72 6c 66 75 6e 63 0a 23 | 77 72 61 70 20 6f 6e 0a |rlfunc.#|wrap on.|
|00002cf0| 23 49 6e 64 65 6e 74 20 | 33 0a 23 49 6e 64 65 6e |#Indent |3.#Inden|
|00002d00| 74 20 30 0a 63 6c 6f 73 | 65 64 69 72 20 44 49 52 |t 0.clos|edir DIR|
|00002d10| 48 41 4e 44 4c 45 0a 23 | 49 6e 64 65 6e 74 20 33 |HANDLE.#|Indent 3|
|00002d20| 0a 0a 43 6c 6f 73 65 73 | 20 61 20 64 69 72 65 63 |..Closes| a direc|
|00002d30| 74 6f 72 79 20 6f 70 65 | 6e 65 64 20 62 79 20 6f |tory ope|ned by o|
|00002d40| 70 65 6e 64 69 72 28 29 | 2e 0a 0a 00 44 41 54 41 |pendir()|....DATA|
|00002d50| 51 01 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |Q...Perl| functio|
|00002d60| 6e 73 20 2d 20 63 6f 6e | 6e 65 63 74 0a 23 70 61 |ns - con|nect.#pa|
|00002d70| 72 65 6e 74 20 70 65 72 | 6c 66 75 6e 63 0a 23 77 |rent per|lfunc.#w|
|00002d80| 72 61 70 20 6f 6e 0a 23 | 49 6e 64 65 6e 74 20 33 |rap on.#|Indent 3|
|00002d90| 0a 23 49 6e 64 65 6e 74 | 20 30 0a 63 6f 6e 6e 65 |.#Indent| 0.conne|
|00002da0| 63 74 20 53 4f 43 4b 45 | 54 2c 4e 41 4d 45 0a 23 |ct SOCKE|T,NAME.#|
|00002db0| 49 6e 64 65 6e 74 20 33 | 0a 0a 41 74 74 65 6d 70 |Indent 3|..Attemp|
|00002dc0| 74 73 20 74 6f 20 63 6f | 6e 6e 65 63 74 20 74 6f |ts to co|nnect to|
|00002dd0| 20 61 20 72 65 6d 6f 74 | 65 20 73 6f 63 6b 65 74 | a remot|e socket|
|00002de0| 2c 20 6a 75 73 74 20 61 | 73 20 74 68 65 20 63 6f |, just a|s the co|
|00002df0| 6e 6e 65 63 74 20 73 79 | 73 74 65 6d 20 63 61 6c |nnect sy|stem cal|
|00002e00| 6c 0a 64 6f 65 73 2e 20 | 20 52 65 74 75 72 6e 73 |l.does. | Returns|
|00002e10| 20 54 52 55 45 20 69 66 | 20 69 74 20 73 75 63 63 | TRUE if| it succ|
|00002e20| 65 65 64 65 64 2c 20 46 | 41 4c 53 45 20 6f 74 68 |eeded, F|ALSE oth|
|00002e30| 65 72 77 69 73 65 2e 20 | 20 4e 41 4d 45 20 73 68 |erwise. | NAME sh|
|00002e40| 6f 75 6c 64 20 62 65 20 | 61 0a 70 61 63 6b 65 64 |ould be |a.packed|
|00002e50| 20 61 64 64 72 65 73 73 | 20 6f 66 20 74 68 65 20 | address| of the |
|00002e60| 61 70 70 72 6f 70 72 69 | 61 74 65 20 74 79 70 65 |appropri|ate type|
|00002e70| 20 66 6f 72 20 74 68 65 | 20 73 6f 63 6b 65 74 2e | for the| socket.|
|00002e80| 20 20 53 65 65 20 65 78 | 61 6d 70 6c 65 20 69 6e | See ex|ample in|
|00002e90| 0a 3c 70 65 72 6c 69 70 | 63 3e 2e 0a 0a 00 00 00 |.<perlip|c>......|
|00002ea0| 44 41 54 41 bc 00 00 00 | 50 65 72 6c 20 66 75 6e |DATA....|Perl fun|
|00002eb0| 63 74 69 6f 6e 73 20 2d | 20 63 6f 73 0a 23 70 61 |ctions -| cos.#pa|
|00002ec0| 72 65 6e 74 20 70 65 72 | 6c 66 75 6e 63 0a 23 77 |rent per|lfunc.#w|
|00002ed0| 72 61 70 20 6f 6e 0a 23 | 49 6e 64 65 6e 74 20 33 |rap on.#|Indent 3|
|00002ee0| 0a 23 49 6e 64 65 6e 74 | 20 30 0a 63 6f 73 20 45 |.#Indent| 0.cos E|
|00002ef0| 58 50 52 0a 23 49 6e 64 | 65 6e 74 20 33 0a 0a 52 |XPR.#Ind|ent 3..R|
|00002f00| 65 74 75 72 6e 73 20 74 | 68 65 20 63 6f 73 69 6e |eturns t|he cosin|
|00002f10| 65 20 6f 66 20 45 58 50 | 52 20 28 65 78 70 72 65 |e of EXP|R (expre|
|00002f20| 73 73 65 64 20 69 6e 20 | 72 61 64 69 61 6e 73 29 |ssed in |radians)|
|00002f30| 2e 20 20 49 66 20 45 58 | 50 52 20 69 73 20 6f 6d |. If EX|PR is om|
|00002f40| 69 74 74 65 64 0a 74 61 | 6b 65 73 20 63 6f 73 69 |itted.ta|kes cosi|
|00002f50| 6e 65 20 6f 66 20 24 5c | 5f 2e 0a 0a 44 41 54 41 |ne of $\|_...DATA|
|00002f60| 64 03 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |d...Perl| functio|
|00002f70| 6e 73 20 2d 20 63 72 79 | 70 74 0a 23 70 61 72 65 |ns - cry|pt.#pare|
|00002f80| 6e 74 20 70 65 72 6c 66 | 75 6e 63 0a 23 77 72 61 |nt perlf|unc.#wra|
|00002f90| 70 20 6f 6e 0a 23 49 6e | 64 65 6e 74 20 33 0a 23 |p on.#In|dent 3.#|
|00002fa0| 49 6e 64 65 6e 74 20 30 | 0a 63 72 79 70 74 20 50 |Indent 0|.crypt P|
|00002fb0| 4c 41 49 4e 54 45 58 54 | 2c 53 41 4c 54 0a 23 49 |LAINTEXT|,SALT.#I|
|00002fc0| 6e 64 65 6e 74 20 33 0a | 0a 45 6e 63 72 79 70 74 |ndent 3.|.Encrypt|
|00002fd0| 73 20 61 20 73 74 72 69 | 6e 67 20 65 78 61 63 74 |s a stri|ng exact|
|00002fe0| 6c 79 20 6c 69 6b 65 20 | 74 68 65 20 63 72 79 70 |ly like |the cryp|
|00002ff0| 74 28 33 29 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |t(3) fun|ction in|
|00003000| 20 74 68 65 20 43 20 6c | 69 62 72 61 72 79 2e 0a | the C l|ibrary..|
|00003010| 55 73 65 66 75 6c 20 66 | 6f 72 20 63 68 65 63 6b |Useful f|or check|
|00003020| 69 6e 67 20 74 68 65 20 | 70 61 73 73 77 6f 72 64 |ing the |password|
|00003030| 20 66 69 6c 65 20 66 6f | 72 20 6c 6f 75 73 79 20 | file fo|r lousy |
|00003040| 70 61 73 73 77 6f 72 64 | 73 2c 20 61 6d 6f 6e 67 |password|s, among|
|00003050| 73 74 0a 6f 74 68 65 72 | 20 74 68 69 6e 67 73 2e |st.other| things.|
|00003060| 20 20 4f 6e 6c 79 20 74 | 68 65 20 67 75 79 73 20 | Only t|he guys |
|00003070| 77 65 61 72 69 6e 67 20 | 77 68 69 74 65 20 68 61 |wearing |white ha|
|00003080| 74 73 20 73 68 6f 75 6c | 64 20 64 6f 20 74 68 69 |ts shoul|d do thi|
|00003090| 73 2e 20 20 0a 0a 48 65 | 72 65 27 73 20 61 6e 20 |s. ..He|re's an |
|000030a0| 65 78 61 6d 70 6c 65 20 | 74 68 61 74 20 6d 61 6b |example |that mak|
|000030b0| 65 73 20 73 75 72 65 20 | 74 68 61 74 20 77 68 6f |es sure |that who|
|000030c0| 65 76 65 72 20 72 75 6e | 73 20 74 68 69 73 20 70 |ever run|s this p|
|000030d0| 72 6f 67 72 61 6d 20 6b | 6e 6f 77 73 0a 74 68 65 |rogram k|nows.the|
|000030e0| 69 72 20 6f 77 6e 20 70 | 61 73 73 77 6f 72 64 3a |ir own p|assword:|
|000030f0| 0a 0a 23 46 43 6f 64 65 | 0a 23 57 72 61 70 20 4e |..#FCode|.#Wrap N|
|00003100| 6f 4a 6f 69 6e 0a 20 20 | 20 20 24 70 77 64 20 3d |oJoin. | $pwd =|
|00003110| 20 28 67 65 74 70 77 75 | 69 64 28 24 5c 3c 29 29 | (getpwu|id($\<))|
|00003120| 5b 31 5d 3b 0a 20 20 20 | 20 24 73 61 6c 74 20 3d |[1];. | $salt =|
|00003130| 20 73 75 62 73 74 72 28 | 24 70 77 64 2c 20 30 2c | substr(|$pwd, 0,|
|00003140| 20 32 29 3b 0a 23 57 72 | 61 70 0a 23 46 0a 0a 23 | 2);.#Wr|ap.#F..#|
|00003150| 46 43 6f 64 65 0a 23 57 | 72 61 70 20 4e 6f 4a 6f |FCode.#W|rap NoJo|
|00003160| 69 6e 0a 20 20 20 20 73 | 79 73 74 65 6d 20 22 73 |in. s|ystem "s|
|00003170| 74 74 79 20 99 65 63 68 | 6f 22 3b 0a 20 20 20 20 |tty .ech|o";. |
|00003180| 70 72 69 6e 74 20 22 50 | 61 73 73 77 6f 72 64 3a |print "P|assword:|
|00003190| 20 22 3b 0a 20 20 20 20 | 63 68 6f 70 28 24 77 6f | ";. |chop($wo|
|000031a0| 72 64 20 3d 20 5c 3c 53 | 54 44 49 4e 5c 3e 29 3b |rd = \<S|TDIN\>);|
|000031b0| 0a 20 20 20 20 70 72 69 | 6e 74 20 22 5c 5c 6e 22 |. pri|nt "\\n"|
|000031c0| 3b 0a 20 20 20 20 73 79 | 73 74 65 6d 20 22 73 74 |;. sy|stem "st|
|000031d0| 74 79 20 65 63 68 6f 22 | 3b 0a 23 57 72 61 70 0a |ty echo"|;.#Wrap.|
|000031e0| 23 46 0a 0a 23 46 43 6f | 64 65 0a 23 57 72 61 70 |#F..#FCo|de.#Wrap|
|000031f0| 20 4e 6f 4a 6f 69 6e 0a | 20 20 20 20 69 66 20 28 | NoJoin.| if (|
|00003200| 63 72 79 70 74 28 24 77 | 6f 72 64 2c 20 24 73 61 |crypt($w|ord, $sa|
|00003210| 6c 74 29 20 6e 65 20 24 | 70 77 64 29 20 5c 7b 0a |lt) ne $|pwd) \{.|
|00003220| 20 20 20 20 20 20 20 20 | 64 69 65 20 22 53 6f 72 | |die "Sor|
|00003230| 72 79 2e 2e 2e 5c 5c 6e | 22 3b 0a 20 20 20 20 7d |ry...\\n|";. }|
|00003240| 20 65 6c 73 65 20 5c 7b | 0a 20 20 20 20 20 20 20 | else \{|. |
|00003250| 20 70 72 69 6e 74 20 22 | 6f 6b 5c 5c 6e 22 3b 0a | print "|ok\\n";.|
|00003260| 20 20 20 20 7d 20 0a 23 | 57 72 61 70 0a 23 46 0a | } .#|Wrap.#F.|
|00003270| 0a 4f 66 20 63 6f 75 72 | 73 65 2c 20 74 79 70 69 |.Of cour|se, typi|
|00003280| 6e 67 20 69 6e 20 79 6f | 75 72 20 6f 77 6e 20 70 |ng in yo|ur own p|
|00003290| 61 73 73 77 6f 72 64 20 | 74 6f 20 77 68 6f 65 76 |assword |to whoev|
|000032a0| 65 72 20 61 73 6b 73 20 | 79 6f 75 20 0a 66 6f 72 |er asks |you .for|
|000032b0| 20 69 74 20 69 73 20 75 | 6e 77 69 73 65 2e 0a 0a | it is u|nwise...|
|000032c0| 44 41 54 41 f0 00 00 00 | 50 65 72 6c 20 66 75 6e |DATA....|Perl fun|
|000032d0| 63 74 69 6f 6e 73 20 2d | 20 64 62 6d 63 6c 6f 73 |ctions -| dbmclos|
|000032e0| 65 0a 23 70 61 72 65 6e | 74 20 70 65 72 6c 66 75 |e.#paren|t perlfu|
|000032f0| 6e 63 0a 23 77 72 61 70 | 20 6f 6e 0a 23 49 6e 64 |nc.#wrap| on.#Ind|
|00003300| 65 6e 74 20 33 0a 23 49 | 6e 64 65 6e 74 20 30 0a |ent 3.#I|ndent 0.|
|00003310| 64 62 6d 63 6c 6f 73 65 | 20 41 53 53 4f 43 5c 5f |dbmclose| ASSOC\_|
|00003320| 41 52 52 41 59 0a 23 49 | 6e 64 65 6e 74 20 33 0a |ARRAY.#I|ndent 3.|
|00003330| 0a 5b 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |.[This f|unction |
|00003340| 68 61 73 20 62 65 65 6e | 20 73 75 70 65 72 73 65 |has been| superse|
|00003350| 64 65 64 20 62 79 20 74 | 68 65 20 75 6e 74 69 65 |ded by t|he untie|
|00003360| 28 29 20 66 75 6e 63 74 | 69 6f 6e 2e 5d 0a 0a 42 |() funct|ion.]..B|
|00003370| 72 65 61 6b 73 20 74 68 | 65 20 62 69 6e 64 69 6e |reaks th|e bindin|
|00003380| 67 20 62 65 74 77 65 65 | 6e 20 61 20 44 42 4d 20 |g betwee|n a DBM |
|00003390| 66 69 6c 65 20 61 6e 64 | 20 61 6e 20 61 73 73 6f |file and| an asso|
|000033a0| 63 69 61 74 69 76 65 20 | 61 72 72 61 79 2e 0a 0a |ciative |array...|
|000033b0| 44 41 54 41 bb 05 00 00 | 50 65 72 6c 20 66 75 6e |DATA....|Perl fun|
|000033c0| 63 74 69 6f 6e 73 20 2d | 20 64 62 6d 6f 70 65 6e |ctions -| dbmopen|
|000033d0| 0a 23 70 61 72 65 6e 74 | 20 70 65 72 6c 66 75 6e |.#parent| perlfun|
|000033e0| 63 0a 23 77 72 61 70 20 | 6f 6e 0a 23 49 6e 64 65 |c.#wrap |on.#Inde|
|000033f0| 6e 74 20 33 0a 23 49 6e | 64 65 6e 74 20 30 0a 64 |nt 3.#In|dent 0.d|
|00003400| 62 6d 6f 70 65 6e 20 41 | 53 53 4f 43 2c 44 42 4e |bmopen A|SSOC,DBN|
|00003410| 41 4d 45 2c 4d 4f 44 45 | 0a 23 49 6e 64 65 6e 74 |AME,MODE|.#Indent|
|00003420| 20 33 0a 0a 5b 54 68 69 | 73 20 66 75 6e 63 74 69 | 3..[Thi|s functi|
|00003430| 6f 6e 20 68 61 73 20 62 | 65 65 6e 20 73 75 70 65 |on has b|een supe|
|00003440| 72 73 65 64 65 64 20 62 | 79 20 74 68 65 20 74 69 |rseded b|y the ti|
|00003450| 65 28 29 20 66 75 6e 63 | 74 69 6f 6e 2e 5d 0a 0a |e() func|tion.]..|
|00003460| 54 68 69 73 20 62 69 6e | 64 73 20 61 20 64 62 6d |This bin|ds a dbm|
|00003470| 28 33 29 20 6f 72 20 6e | 64 62 6d 28 33 29 20 66 |(3) or n|dbm(3) f|
|00003480| 69 6c 65 20 74 6f 20 61 | 6e 20 61 73 73 6f 63 69 |ile to a|n associ|
|00003490| 61 74 69 76 65 20 61 72 | 72 61 79 2e 20 20 41 53 |ative ar|ray. AS|
|000034a0| 53 4f 43 20 69 73 20 74 | 68 65 0a 6e 61 6d 65 20 |SOC is t|he.name |
|000034b0| 6f 66 20 74 68 65 20 61 | 73 73 6f 63 69 61 74 69 |of the a|ssociati|
|000034c0| 76 65 20 61 72 72 61 79 | 2e 20 20 28 55 6e 6c 69 |ve array|. (Unli|
|000034d0| 6b 65 20 6e 6f 72 6d 61 | 6c 20 6f 70 65 6e 2c 20 |ke norma|l open, |
|000034e0| 74 68 65 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |the firs|t argume|
|000034f0| 6e 74 0a 69 73 20 7b 2f | 7d 4e 4f 54 7b 2f 7d 20 |nt.is {/|}NOT{/} |
|00003500| 61 20 66 69 6c 65 68 61 | 6e 64 6c 65 2c 20 65 76 |a fileha|ndle, ev|
|00003510| 65 6e 20 74 68 6f 75 67 | 68 20 69 74 20 6c 6f 6f |en thoug|h it loo|
|00003520| 6b 73 20 6c 69 6b 65 20 | 6f 6e 65 29 2e 20 20 44 |ks like |one). D|
|00003530| 42 4e 41 4d 45 20 69 73 | 20 74 68 65 0a 6e 61 6d |BNAME is| the.nam|
|00003540| 65 20 6f 66 20 74 68 65 | 20 64 61 74 61 62 61 73 |e of the| databas|
|00003550| 65 20 28 77 69 74 68 6f | 75 74 20 74 68 65 20 7b |e (witho|ut the {|
|00003560| 66 43 6f 64 65 7d 2e 64 | 69 72 7b 66 7d 20 6f 72 |fCode}.d|ir{f} or|
|00003570| 20 7b 66 43 6f 64 65 7d | 2e 70 61 67 7b 66 7d 20 | {fCode}|.pag{f} |
|00003580| 65 78 74 65 6e 73 69 6f | 6e 29 2e 20 20 49 66 20 |extensio|n). If |
|00003590| 74 68 65 0a 64 61 74 61 | 62 61 73 65 20 64 6f 65 |the.data|base doe|
|000035a0| 73 20 6e 6f 74 20 65 78 | 69 73 74 2c 20 69 74 20 |s not ex|ist, it |
|000035b0| 69 73 20 63 72 65 61 74 | 65 64 20 77 69 74 68 20 |is creat|ed with |
|000035c0| 70 72 6f 74 65 63 74 69 | 6f 6e 20 73 70 65 63 69 |protecti|on speci|
|000035d0| 66 69 65 64 20 62 79 0a | 4d 4f 44 45 20 28 61 73 |fied by.|MODE (as|
|000035e0| 20 6d 6f 64 69 66 69 65 | 64 20 62 79 20 74 68 65 | modifie|d by the|
|000035f0| 20 75 6d 61 73 6b 28 29 | 29 2e 20 20 49 66 20 79 | umask()|). If y|
|00003600| 6f 75 72 20 73 79 73 74 | 65 6d 20 6f 6e 6c 79 20 |our syst|em only |
|00003610| 73 75 70 70 6f 72 74 73 | 20 74 68 65 0a 6f 6c 64 |supports| the.old|
|00003620| 65 72 20 44 42 4d 20 66 | 75 6e 63 74 69 6f 6e 73 |er DBM f|unctions|
|00003630| 2c 20 79 6f 75 20 6d 61 | 79 20 70 65 72 66 6f 72 |, you ma|y perfor|
|00003640| 6d 20 6f 6e 6c 79 20 6f | 6e 65 20 64 62 6d 6f 70 |m only o|ne dbmop|
|00003650| 65 6e 28 29 20 69 6e 20 | 79 6f 75 72 20 70 72 6f |en() in |your pro|
|00003660| 67 72 61 6d 2e 0a 49 66 | 20 79 6f 75 72 20 73 79 |gram..If| your sy|
|00003670| 73 74 65 6d 20 68 61 73 | 20 6e 65 69 74 68 65 72 |stem has| neither|
|00003680| 20 44 42 4d 20 6e 6f 72 | 20 6e 64 62 6d 2c 20 63 | DBM nor| ndbm, c|
|00003690| 61 6c 6c 69 6e 67 20 64 | 62 6d 6f 70 65 6e 28 29 |alling d|bmopen()|
|000036a0| 20 70 72 6f 64 75 63 65 | 73 20 61 0a 66 61 74 61 | produce|s a.fata|
|000036b0| 6c 20 65 72 72 6f 72 2e | 0a 0a 49 66 20 79 6f 75 |l error.|..If you|
|000036c0| 20 64 6f 6e 27 74 20 68 | 61 76 65 20 77 72 69 74 | don't h|ave writ|
|000036d0| 65 20 61 63 63 65 73 73 | 20 74 6f 20 74 68 65 20 |e access| to the |
|000036e0| 44 42 4d 20 66 69 6c 65 | 2c 20 79 6f 75 20 63 61 |DBM file|, you ca|
|000036f0| 6e 20 6f 6e 6c 79 20 72 | 65 61 64 0a 61 73 73 6f |n only r|ead.asso|
|00003700| 63 69 61 74 69 76 65 20 | 61 72 72 61 79 20 76 61 |ciative |array va|
|00003710| 72 69 61 62 6c 65 73 2c | 20 6e 6f 74 20 73 65 74 |riables,| not set|
|00003720| 20 74 68 65 6d 2e 20 20 | 49 66 20 79 6f 75 20 77 | them. |If you w|
|00003730| 61 6e 74 20 74 6f 20 74 | 65 73 74 20 77 68 65 74 |ant to t|est whet|
|00003740| 68 65 72 0a 79 6f 75 20 | 63 61 6e 20 77 72 69 74 |her.you |can writ|
|00003750| 65 2c 20 65 69 74 68 65 | 72 20 75 73 65 20 66 69 |e, eithe|r use fi|
|00003760| 6c 65 20 74 65 73 74 73 | 20 6f 72 20 74 72 79 20 |le tests| or try |
|00003770| 73 65 74 74 69 6e 67 20 | 61 20 64 75 6d 6d 79 20 |setting |a dummy |
|00003780| 61 72 72 61 79 20 65 6e | 74 72 79 0a 69 6e 73 69 |array en|try.insi|
|00003790| 64 65 20 61 6e 20 65 76 | 61 6c 28 29 2c 20 77 68 |de an ev|al(), wh|
|000037a0| 69 63 68 20 77 69 6c 6c | 20 74 72 61 70 20 74 68 |ich will| trap th|
|000037b0| 65 20 65 72 72 6f 72 2e | 0a 0a 4e 6f 74 65 20 74 |e error.|..Note t|
|000037c0| 68 61 74 20 66 75 6e 63 | 74 69 6f 6e 73 20 73 75 |hat func|tions su|
|000037d0| 63 68 20 61 73 20 6b 65 | 79 73 28 29 20 61 6e 64 |ch as ke|ys() and|
|000037e0| 20 76 61 6c 75 65 73 28 | 29 20 6d 61 79 20 72 65 | values(|) may re|
|000037f0| 74 75 72 6e 20 68 75 67 | 65 20 61 72 72 61 79 0a |turn hug|e array.|
|00003800| 76 61 6c 75 65 73 20 77 | 68 65 6e 20 75 73 65 64 |values w|hen used|
|00003810| 20 6f 6e 20 6c 61 72 67 | 65 20 44 42 4d 20 66 69 | on larg|e DBM fi|
|00003820| 6c 65 73 2e 20 20 59 6f | 75 20 6d 61 79 20 70 72 |les. Yo|u may pr|
|00003830| 65 66 65 72 20 74 6f 20 | 75 73 65 20 74 68 65 20 |efer to |use the |
|00003840| 65 61 63 68 28 29 0a 66 | 75 6e 63 74 69 6f 6e 20 |each().f|unction |
|00003850| 74 6f 20 69 74 65 72 61 | 74 65 20 6f 76 65 72 20 |to itera|te over |
|00003860| 6c 61 72 67 65 20 44 42 | 4d 20 66 69 6c 65 73 2e |large DB|M files.|
|00003870| 20 20 45 78 61 6d 70 6c | 65 3a 0a 0a 23 46 43 6f | Exampl|e:..#FCo|
|00003880| 64 65 0a 23 57 72 61 70 | 20 4e 6f 4a 6f 69 6e 0a |de.#Wrap| NoJoin.|
|00003890| 20 20 20 20 23 20 70 72 | 69 6e 74 20 6f 75 74 20 | # pr|int out |
|000038a0| 68 69 73 74 6f 72 79 20 | 66 69 6c 65 20 6f 66 66 |history |file off|
|000038b0| 73 65 74 73 0a 20 20 20 | 20 64 62 6d 6f 70 65 6e |sets. | dbmopen|
|000038c0| 28 25 48 49 53 54 2c 27 | 5c 2f 75 73 72 5c 2f 6c |(%HIST,'|\/usr\/l|
|000038d0| 69 62 5c 2f 6e 65 77 73 | 5c 2f 68 69 73 74 6f 72 |ib\/news|\/histor|
|000038e0| 79 27 2c 30 36 36 36 29 | 3b 0a 20 20 20 20 77 68 |y',0666)|;. wh|
|000038f0| 69 6c 65 20 28 28 24 6b | 65 79 2c 24 76 61 6c 29 |ile (($k|ey,$val)|
|00003900| 20 3d 20 65 61 63 68 20 | 25 48 49 53 54 29 20 5c | = each |%HIST) \|
|00003910| 7b 0a 20 20 20 20 20 20 | 20 20 70 72 69 6e 74 20 |{. | print |
|00003920| 24 6b 65 79 2c 20 27 20 | 3d 20 27 2c 20 75 6e 70 |$key, ' |= ', unp|
|00003930| 61 63 6b 28 27 4c 27 2c | 24 76 61 6c 29 2c 20 22 |ack('L',|$val), "|
|00003940| 5c 5c 6e 22 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |\\n";. | }. |
|00003950| 64 62 6d 63 6c 6f 73 65 | 28 25 48 49 53 54 29 3b |dbmclose|(%HIST);|
|00003960| 0a 23 57 72 61 70 0a 23 | 46 0a 0a 00 44 41 54 41 |.#Wrap.#|F...DATA|
|00003970| ae 04 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |....Perl| functio|
|00003980| 6e 73 20 2d 20 64 65 66 | 69 6e 65 64 0a 23 70 61 |ns - def|ined.#pa|
|00003990| 72 65 6e 74 20 70 65 72 | 6c 66 75 6e 63 0a 23 77 |rent per|lfunc.#w|
|000039a0| 72 61 70 20 6f 6e 0a 23 | 49 6e 64 65 6e 74 20 33 |rap on.#|Indent 3|
|000039b0| 0a 23 49 6e 64 65 6e 74 | 20 30 0a 64 65 66 69 6e |.#Indent| 0.defin|
|000039c0| 65 64 20 45 58 50 52 0a | 23 49 6e 64 65 6e 74 20 |ed EXPR.|#Indent |
|000039d0| 33 0a 0a 52 65 74 75 72 | 6e 73 20 61 20 62 6f 6f |3..Retur|ns a boo|
|000039e0| 6c 65 61 6e 20 76 61 6c | 75 65 20 73 61 79 69 6e |lean val|ue sayin|
|000039f0| 67 20 77 68 65 74 68 65 | 72 20 74 68 65 20 6c 76 |g whethe|r the lv|
|00003a00| 61 6c 75 65 20 45 58 50 | 52 20 68 61 73 20 61 20 |alue EXP|R has a |
|00003a10| 72 65 61 6c 20 76 61 6c | 75 65 0a 6f 72 20 6e 6f |real val|ue.or no|
|00003a20| 74 2e 20 20 4d 61 6e 79 | 20 6f 70 65 72 61 74 69 |t. Many| operati|
|00003a30| 6f 6e 73 20 72 65 74 75 | 72 6e 20 74 68 65 20 75 |ons retu|rn the u|
|00003a40| 6e 64 65 66 69 6e 65 64 | 20 76 61 6c 75 65 20 75 |ndefined| value u|
|00003a50| 6e 64 65 72 20 65 78 63 | 65 70 74 69 6f 6e 61 6c |nder exc|eptional|
|00003a60| 0a 63 6f 6e 64 69 74 69 | 6f 6e 73 2c 20 73 75 63 |.conditi|ons, suc|
|00003a70| 68 20 61 73 20 65 6e 64 | 20 6f 66 20 66 69 6c 65 |h as end| of file|
|00003a80| 2c 20 75 6e 69 6e 69 74 | 69 61 6c 69 7a 65 64 20 |, uninit|ialized |
|00003a90| 76 61 72 69 61 62 6c 65 | 2c 20 73 79 73 74 65 6d |variable|, system|
|00003aa0| 20 65 72 72 6f 72 0a 61 | 6e 64 20 73 75 63 68 2e | error.a|nd such.|
|00003ab0| 20 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 | This f|unction |
|00003ac0| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 64 69 |allows y|ou to di|
|00003ad0| 73 74 69 6e 67 75 69 73 | 68 20 62 65 74 77 65 65 |stinguis|h betwee|
|00003ae0| 6e 20 61 6e 20 75 6e 64 | 65 66 69 6e 65 64 0a 6e |n an und|efined.n|
|00003af0| 75 6c 6c 20 73 63 61 6c | 61 72 20 61 6e 64 20 61 |ull scal|ar and a|
|00003b00| 20 64 65 66 69 6e 65 64 | 20 6e 75 6c 6c 20 73 63 | defined| null sc|
|00003b10| 61 6c 61 72 20 77 69 74 | 68 20 6f 70 65 72 61 74 |alar wit|h operat|
|00003b20| 69 6f 6e 73 20 74 68 61 | 74 20 6d 69 67 68 74 20 |ions tha|t might |
|00003b30| 72 65 74 75 72 6e 0a 61 | 20 72 65 61 6c 20 6e 75 |return.a| real nu|
|00003b40| 6c 6c 20 73 74 72 69 6e | 67 2c 20 73 75 63 68 20 |ll strin|g, such |
|00003b50| 61 73 20 72 65 66 65 72 | 65 6e 63 69 6e 67 20 65 |as refer|encing e|
|00003b60| 6c 65 6d 65 6e 74 73 20 | 6f 66 20 61 6e 20 61 72 |lements |of an ar|
|00003b70| 72 61 79 2e 20 20 59 6f | 75 20 6d 61 79 0a 61 6c |ray. Yo|u may.al|
|00003b80| 73 6f 20 63 68 65 63 6b | 20 74 6f 20 73 65 65 20 |so check| to see |
|00003b90| 69 66 20 61 72 72 61 79 | 73 20 6f 72 20 73 75 62 |if array|s or sub|
|00003ba0| 72 6f 75 74 69 6e 65 73 | 20 65 78 69 73 74 2e 20 |routines| exist. |
|00003bb0| 20 55 73 65 20 6f 66 20 | 64 65 66 69 6e 65 64 20 | Use of |defined |
|00003bc0| 6f 6e 0a 70 72 65 64 65 | 66 69 6e 65 64 20 76 61 |on.prede|fined va|
|00003bd0| 72 69 61 62 6c 65 73 20 | 69 73 20 6e 6f 74 20 67 |riables |is not g|
|00003be0| 75 61 72 61 6e 74 65 65 | 64 20 74 6f 20 70 72 6f |uarantee|d to pro|
|00003bf0| 64 75 63 65 20 69 6e 74 | 75 69 74 69 76 65 20 72 |duce int|uitive r|
|00003c00| 65 73 75 6c 74 73 2e 0a | 0a 57 68 65 6e 20 75 73 |esults..|.When us|
|00003c10| 65 64 20 6f 6e 20 61 20 | 68 61 73 68 20 61 72 72 |ed on a |hash arr|
|00003c20| 61 79 20 65 6c 65 6d 65 | 6e 74 2c 20 69 74 20 74 |ay eleme|nt, it t|
|00003c30| 65 6c 6c 73 20 79 6f 75 | 20 77 68 65 74 68 65 72 |ells you| whether|
|00003c40| 20 74 68 65 20 76 61 6c | 75 65 0a 69 73 20 64 65 | the val|ue.is de|
|00003c50| 66 69 6e 65 64 2c 20 6e | 6f 74 20 77 68 65 74 68 |fined, n|ot wheth|
|00003c60| 65 72 20 74 68 65 20 6b | 65 79 20 65 78 69 73 74 |er the k|ey exist|
|00003c70| 73 20 69 6e 20 74 68 65 | 20 68 61 73 68 2e 20 20 |s in the| hash. |
|00003c80| 55 73 65 20 65 78 69 73 | 74 73 28 29 20 66 6f 72 |Use exis|ts() for|
|00003c90| 20 74 68 61 74 2e 0a 0a | 45 78 61 6d 70 6c 65 73 | that...|Examples|
|00003ca0| 3a 0a 0a 23 46 43 6f 64 | 65 0a 23 57 72 61 70 20 |:..#FCod|e.#Wrap |
|00003cb0| 4e 6f 4a 6f 69 6e 0a 20 | 20 20 20 70 72 69 6e 74 |NoJoin. | print|
|00003cc0| 20 69 66 20 64 65 66 69 | 6e 65 64 20 24 73 77 69 | if defi|ned $swi|
|00003cd0| 74 63 68 5c 7b 27 44 27 | 7d 3b 0a 20 20 20 20 70 |tch\{'D'|};. p|
|00003ce0| 72 69 6e 74 20 22 24 76 | 61 6c 5c 5c 6e 22 20 77 |rint "$v|al\\n" w|
|00003cf0| 68 69 6c 65 20 64 65 66 | 69 6e 65 64 28 24 76 61 |hile def|ined($va|
|00003d00| 6c 20 3d 20 70 6f 70 28 | 40 61 72 79 29 29 3b 0a |l = pop(|@ary));.|
|00003d10| 20 20 20 20 64 69 65 20 | 22 43 61 6e 27 74 20 72 | die |"Can't r|
|00003d20| 65 61 64 6c 69 6e 6b 20 | 24 73 79 6d 3a 20 24 21 |eadlink |$sym: $!|
|00003d30| 22 0a 20 20 20 20 20 20 | 20 20 75 6e 6c 65 73 73 |". | unless|
|00003d40| 20 64 65 66 69 6e 65 64 | 28 24 76 61 6c 75 65 20 | defined|($value |
|00003d50| 3d 20 72 65 61 64 6c 69 | 6e 6b 20 24 73 79 6d 29 |= readli|nk $sym)|
|00003d60| 3b 0a 20 20 20 20 65 76 | 61 6c 20 27 40 66 6f 6f |;. ev|al '@foo|
|00003d70| 20 3d 20 28 29 27 20 69 | 66 20 64 65 66 69 6e 65 | = ()' i|f define|
|00003d80| 64 28 40 66 6f 6f 29 3b | 0a 20 20 20 20 64 69 65 |d(@foo);|. die|
|00003d90| 20 22 4e 6f 20 58 59 5a | 20 70 61 63 6b 61 67 65 | "No XYZ| package|
|00003da0| 20 64 65 66 69 6e 65 64 | 22 20 75 6e 6c 65 73 73 | defined|" unless|
|00003db0| 20 64 65 66 69 6e 65 64 | 20 25 5c 5f 58 59 5a 3b | defined| %\_XYZ;|
|00003dc0| 0a 20 20 20 20 73 75 62 | 20 66 6f 6f 20 5c 7b 20 |. sub| foo \{ |
|00003dd0| 64 65 66 69 6e 65 64 20 | 26 24 62 61 72 20 3f 20 |defined |&$bar ? |
|00003de0| 26 24 62 61 72 28 40 5c | 5f 29 20 3a 20 64 69 65 |&$bar(@\|_) : die|
|00003df0| 20 22 4e 6f 20 62 61 72 | 22 3b 20 7d 0a 23 57 72 | "No bar|"; }.#Wr|
|00003e00| 61 70 0a 23 46 0a 0a 53 | 65 65 20 61 6c 73 6f 20 |ap.#F..S|ee also |
|00003e10| 75 6e 64 65 66 28 29 2e | 0a 0a 00 00 44 41 54 41 |undef().|....DATA|
|00003e20| 37 03 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |7...Perl| functio|
|00003e30| 6e 73 20 2d 20 64 65 6c | 65 74 65 0a 23 70 61 72 |ns - del|ete.#par|
|00003e40| 65 6e 74 20 70 65 72 6c | 66 75 6e 63 0a 23 77 72 |ent perl|func.#wr|
|00003e50| 61 70 20 6f 6e 0a 23 49 | 6e 64 65 6e 74 20 33 0a |ap on.#I|ndent 3.|
|00003e60| 23 49 6e 64 65 6e 74 20 | 30 0a 64 65 6c 65 74 65 |#Indent |0.delete|
|00003e70| 20 45 58 50 52 0a 23 49 | 6e 64 65 6e 74 20 33 0a | EXPR.#I|ndent 3.|
|00003e80| 0a 44 65 6c 65 74 65 73 | 20 74 68 65 20 73 70 65 |.Deletes| the spe|
|00003e90| 63 69 66 69 65 64 20 76 | 61 6c 75 65 20 66 72 6f |cified v|alue fro|
|00003ea0| 6d 20 69 74 73 20 68 61 | 73 68 20 61 72 72 61 79 |m its ha|sh array|
|00003eb0| 2e 20 20 52 65 74 75 72 | 6e 73 20 74 68 65 20 64 |. Retur|ns the d|
|00003ec0| 65 6c 65 74 65 64 0a 76 | 61 6c 75 65 2c 20 6f 72 |eleted.v|alue, or|
|00003ed0| 20 74 68 65 20 75 6e 64 | 65 66 69 6e 65 64 20 76 | the und|efined v|
|00003ee0| 61 6c 75 65 20 69 66 20 | 6e 6f 74 68 69 6e 67 20 |alue if |nothing |
|00003ef0| 77 61 73 20 64 65 6c 65 | 74 65 64 2e 20 20 44 65 |was dele|ted. De|
|00003f00| 6c 65 74 69 6e 67 20 66 | 72 6f 6d 0a 7b 66 43 6f |leting f|rom.{fCo|
|00003f10| 64 65 7d 24 45 4e 56 5c | 7b 7d 7b 66 7d 20 6d 6f |de}$ENV\|{}{f} mo|
|00003f20| 64 69 66 69 65 73 20 74 | 68 65 20 65 6e 76 69 72 |difies t|he envir|
|00003f30| 6f 6e 6d 65 6e 74 2e 20 | 20 44 65 6c 65 74 69 6e |onment. | Deletin|
|00003f40| 67 20 66 72 6f 6d 20 61 | 6e 20 61 72 72 61 79 20 |g from a|n array |
|00003f50| 74 69 65 64 20 74 6f 20 | 61 20 44 42 4d 0a 66 69 |tied to |a DBM.fi|
|00003f60| 6c 65 20 64 65 6c 65 74 | 65 73 20 74 68 65 20 65 |le delet|es the e|
|00003f70| 6e 74 72 79 20 66 72 6f | 6d 20 74 68 65 20 44 42 |ntry fro|m the DB|
|00003f80| 4d 20 66 69 6c 65 2e 20 | 20 28 42 75 74 20 64 65 |M file. | (But de|
|00003f90| 6c 65 74 69 6e 67 20 66 | 72 6f 6d 20 61 20 74 69 |leting f|rom a ti|
|00003fa0| 65 28 29 64 0a 68 61 73 | 68 20 64 6f 65 73 6e 27 |e()d.has|h doesn'|
|00003fb0| 74 20 6e 65 63 65 73 73 | 61 72 69 6c 79 20 72 65 |t necess|arily re|
|00003fc0| 74 75 72 6e 20 61 6e 79 | 74 68 69 6e 67 2e 29 0a |turn any|thing.).|
|00003fd0| 0a 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 64 |.The fol|lowing d|
|00003fe0| 65 6c 65 74 65 73 20 61 | 6c 6c 20 74 68 65 20 76 |eletes a|ll the v|
|00003ff0| 61 6c 75 65 73 20 6f 66 | 20 61 6e 20 61 73 73 6f |alues of| an asso|
|00004000| 63 69 61 74 69 76 65 20 | 61 72 72 61 79 3a 0a 0a |ciative |array:..|
|00004010| 23 46 43 6f 64 65 0a 23 | 57 72 61 70 20 4e 6f 4a |#FCode.#|Wrap NoJ|
|00004020| 6f 69 6e 0a 20 20 20 20 | 66 6f 72 65 61 63 68 20 |oin. |foreach |
|00004030| 24 6b 65 79 20 28 6b 65 | 79 73 20 25 41 52 52 41 |$key (ke|ys %ARRA|
|00004040| 59 29 20 5c 7b 0a 20 20 | 20 20 20 20 20 20 64 65 |Y) \{. | de|
|00004050| 6c 65 74 65 20 24 41 52 | 52 41 59 5c 7b 24 6b 65 |lete $AR|RAY\{$ke|
|00004060| 79 7d 3b 0a 20 20 20 20 | 7d 0a 23 57 72 61 70 0a |y};. |}.#Wrap.|
|00004070| 23 46 0a 0a 28 42 75 74 | 20 69 74 20 77 6f 75 6c |#F..(But| it woul|
|00004080| 64 20 62 65 20 66 61 73 | 74 65 72 20 74 6f 20 75 |d be fas|ter to u|
|00004090| 73 65 20 74 68 65 20 75 | 6e 64 65 66 28 29 20 63 |se the u|ndef() c|
|000040a0| 6f 6d 6d 61 6e 64 2e 29 | 20 20 4e 6f 74 65 20 74 |ommand.)| Note t|
|000040b0| 68 61 74 20 74 68 65 0a | 45 58 50 52 20 63 61 6e |hat the.|EXPR can|
|000040c0| 20 62 65 20 61 72 62 69 | 74 72 61 72 69 6c 79 20 | be arbi|trarily |
|000040d0| 63 6f 6d 70 6c 69 63 61 | 74 65 64 20 61 73 20 6c |complica|ted as l|
|000040e0| 6f 6e 67 20 61 73 20 74 | 68 65 20 66 69 6e 61 6c |ong as t|he final|
|000040f0| 20 6f 70 65 72 61 74 69 | 6f 6e 20 69 73 0a 61 20 | operati|on is.a |
|00004100| 68 61 73 68 20 6b 65 79 | 20 6c 6f 6f 6b 75 70 3a |hash key| lookup:|
|00004110| 0a 0a 23 46 43 6f 64 65 | 0a 23 57 72 61 70 20 4e |..#FCode|.#Wrap N|
|00004120| 6f 4a 6f 69 6e 0a 20 20 | 20 20 64 65 6c 65 74 65 |oJoin. | delete|
|00004130| 20 24 72 65 66 99 5c 3e | 5b 24 78 5d 5b 24 79 5d | $ref.\>|[$x][$y]|
|00004140| 5c 7b 24 6b 65 79 7d 3b | 0a 23 57 72 61 70 0a 23 |\{$key};|.#Wrap.#|
|00004150| 46 0a 0a 00 44 41 54 41 | 08 05 00 00 50 65 72 6c |F...DATA|....Perl|
|00004160| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 64 69 65 | functio|ns - die|
|00004170| 0a 23 70 61 72 65 6e 74 | 20 70 65 72 6c 66 75 6e |.#parent| perlfun|
|00004180| 63 0a 23 77 72 61 70 20 | 6f 6e 0a 23 49 6e 64 65 |c.#wrap |on.#Inde|
|00004190| 6e 74 20 33 0a 23 49 6e | 64 65 6e 74 20 30 0a 64 |nt 3.#In|dent 0.d|
|000041a0| 69 65 20 4c 49 53 54 0a | 23 49 6e 64 65 6e 74 20 |ie LIST.|#Indent |
|000041b0| 33 0a 0a 4f 75 74 73 69 | 64 65 20 6f 66 20 61 6e |3..Outsi|de of an|
|000041c0| 20 65 76 61 6c 28 29 2c | 20 70 72 69 6e 74 73 20 | eval(),| prints |
|000041d0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 4c 49 53 |the valu|e of LIS|
|000041e0| 54 20 74 6f 20 7b 66 43 | 6f 64 65 7d 53 54 44 45 |T to {fC|ode}STDE|
|000041f0| 52 52 7b 66 7d 20 61 6e | 64 20 65 78 69 74 73 20 |RR{f} an|d exits |
|00004200| 77 69 74 68 0a 74 68 65 | 20 63 75 72 72 65 6e 74 |with.the| current|
|00004210| 20 76 61 6c 75 65 20 6f | 66 20 24 21 20 20 28 65 | value o|f $! (e|
|00004220| 72 72 6e 6f 29 2e 20 20 | 49 66 20 24 21 20 69 73 |rrno). |If $! is|
|00004230| 20 30 2c 20 65 78 69 74 | 73 20 77 69 74 68 20 74 | 0, exit|s with t|
|00004240| 68 65 20 76 61 6c 75 65 | 20 6f 66 0a 7b 66 43 6f |he value| of.{fCo|
|00004250| 64 65 7d 28 24 3f 20 3e | 3e 20 38 29 7b 66 7d 20 |de}($? >|> 8){f} |
|00004260| 28 62 61 63 6b 74 69 63 | 6b 20 60 63 6f 6d 6d 61 |(backtic|k `comma|
|00004270| 6e 64 60 20 73 74 61 74 | 75 73 29 2e 20 20 49 66 |nd` stat|us). If|
|00004280| 20 7b 66 43 6f 64 65 7d | 28 24 3f 20 3e 3e 20 38 | {fCode}|($? >> 8|
|00004290| 29 7b 66 7d 20 69 73 20 | 30 2c 0a 65 78 69 74 73 |){f} is |0,.exits|
|000042a0| 20 77 69 74 68 20 32 35 | 35 2e 20 20 49 6e 73 69 | with 25|5. Insi|
|000042b0| 64 65 20 61 6e 20 65 76 | 61 6c 28 29 2c 20 74 68 |de an ev|al(), th|
|000042c0| 65 20 65 72 72 6f 72 20 | 6d 65 73 73 61 67 65 20 |e error |message |
|000042d0| 69 73 20 73 74 75 66 66 | 65 64 20 69 6e 74 6f 20 |is stuff|ed into |
|000042e0| 7b 66 43 6f 64 65 7d 24 | 40 7b 66 7d 2c 0a 61 6e |{fCode}$|@{f},.an|
|000042f0| 64 20 74 68 65 20 65 76 | 61 6c 28 29 20 69 73 20 |d the ev|al() is |
|00004300| 74 65 72 6d 69 6e 61 74 | 65 64 20 77 69 74 68 20 |terminat|ed with |
|00004310| 74 68 65 20 75 6e 64 65 | 66 69 6e 65 64 20 76 61 |the unde|fined va|
|00004320| 6c 75 65 2e 0a 0a 45 71 | 75 69 76 61 6c 65 6e 74 |lue...Eq|uivalent|
|00004330| 20 65 78 61 6d 70 6c 65 | 73 3a 0a 0a 23 46 43 6f | example|s:..#FCo|
|00004340| 64 65 0a 23 57 72 61 70 | 20 4e 6f 4a 6f 69 6e 0a |de.#Wrap| NoJoin.|
|00004350| 20 20 20 20 64 69 65 20 | 22 43 61 6e 27 74 20 63 | die |"Can't c|
|00004360| 64 20 74 6f 20 73 70 6f | 6f 6c 3a 20 24 21 5c 5c |d to spo|ol: $!\\|
|00004370| 6e 22 20 75 6e 6c 65 73 | 73 20 63 68 64 69 72 20 |n" unles|s chdir |
|00004380| 27 5c 2f 75 73 72 5c 2f | 73 70 6f 6f 6c 5c 2f 6e |'\/usr\/|spool\/n|
|00004390| 65 77 73 27 3b 0a 20 20 | 20 20 63 68 64 69 72 20 |ews';. | chdir |
|000043a0| 27 5c 2f 75 73 72 5c 2f | 73 70 6f 6f 6c 5c 2f 6e |'\/usr\/|spool\/n|
|000043b0| 65 77 73 27 20 6f 72 20 | 64 69 65 20 22 43 61 6e |ews' or |die "Can|
|000043c0| 27 74 20 63 64 20 74 6f | 20 73 70 6f 6f 6c 3a 20 |'t cd to| spool: |
|000043d0| 24 21 5c 5c 6e 22 20 0a | 23 57 72 61 70 0a 23 46 |$!\\n" .|#Wrap.#F|
|000043e0| 0a 0a 49 66 20 74 68 65 | 20 76 61 6c 75 65 20 6f |..If the| value o|
|000043f0| 66 20 45 58 50 52 20 64 | 6f 65 73 20 6e 6f 74 20 |f EXPR d|oes not |
|00004400| 65 6e 64 20 69 6e 20 61 | 20 6e 65 77 6c 69 6e 65 |end in a| newline|
|00004410| 2c 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 63 |, the cu|rrent sc|
|00004420| 72 69 70 74 20 6c 69 6e | 65 0a 6e 75 6d 62 65 72 |ript lin|e.number|
|00004430| 20 61 6e 64 20 69 6e 70 | 75 74 20 6c 69 6e 65 20 | and inp|ut line |
|00004440| 6e 75 6d 62 65 72 20 28 | 69 66 20 61 6e 79 29 20 |number (|if any) |
|00004450| 61 72 65 20 61 6c 73 6f | 20 70 72 69 6e 74 65 64 |are also| printed|
|00004460| 2c 20 61 6e 64 20 61 20 | 6e 65 77 6c 69 6e 65 0a |, and a |newline.|
|00004470| 69 73 20 73 75 70 70 6c | 69 65 64 2e 20 20 48 69 |is suppl|ied. Hi|
|00004480| 6e 74 3a 20 73 6f 6d 65 | 74 69 6d 65 73 20 61 70 |nt: some|times ap|
|00004490| 70 65 6e 64 69 6e 67 20 | 22 2c 20 73 74 6f 70 70 |pending |", stopp|
|000044a0| 65 64 22 20 74 6f 20 79 | 6f 75 72 20 6d 65 73 73 |ed" to y|our mess|
|000044b0| 61 67 65 0a 77 69 6c 6c | 20 63 61 75 73 65 20 69 |age.will| cause i|
|000044c0| 74 20 74 6f 20 6d 61 6b | 65 20 62 65 74 74 65 72 |t to mak|e better|
|000044d0| 20 73 65 6e 73 65 20 77 | 68 65 6e 20 74 68 65 20 | sense w|hen the |
|000044e0| 73 74 72 69 6e 67 20 22 | 61 74 20 66 6f 6f 20 6c |string "|at foo l|
|000044f0| 69 6e 65 20 31 32 33 22 | 20 69 73 0a 61 70 70 65 |ine 123"| is.appe|
|00004500| 6e 64 65 64 2e 20 20 53 | 75 70 70 6f 73 65 20 79 |nded. S|uppose y|
|00004510| 6f 75 20 61 72 65 20 72 | 75 6e 6e 69 6e 67 20 73 |ou are r|unning s|
|00004520| 63 72 69 70 74 20 22 63 | 61 6e 61 73 74 61 22 2e |cript "c|anasta".|
|00004530| 0a 0a 23 46 43 6f 64 65 | 0a 23 57 72 61 70 20 4e |..#FCode|.#Wrap N|
|00004540| 6f 4a 6f 69 6e 0a 20 20 | 20 20 64 69 65 20 22 5c |oJoin. | die "\|
|00004550| 2f 65 74 63 5c 2f 67 61 | 6d 65 73 20 69 73 20 6e |/etc\/ga|mes is n|
|00004560| 6f 20 67 6f 6f 64 22 3b | 0a 20 20 20 20 64 69 65 |o good";|. die|
|00004570| 20 22 5c 2f 65 74 63 5c | 2f 67 61 6d 65 73 20 69 | "\/etc\|/games i|
|00004580| 73 20 6e 6f 20 67 6f 6f | 64 2c 20 73 74 6f 70 70 |s no goo|d, stopp|
|00004590| 65 64 22 3b 0a 23 57 72 | 61 70 0a 23 46 0a 0a 70 |ed";.#Wr|ap.#F..p|
|000045a0| 72 6f 64 75 63 65 2c 20 | 72 65 73 70 65 63 74 69 |roduce, |respecti|
|000045b0| 76 65 6c 79 0a 0a 23 46 | 43 6f 64 65 0a 23 57 72 |vely..#F|Code.#Wr|
|000045c0| 61 70 20 4e 6f 4a 6f 69 | 6e 0a 20 20 20 20 5c 2f |ap NoJoi|n. \/|
|000045d0| 65 74 63 5c 2f 67 61 6d | 65 73 20 69 73 20 6e 6f |etc\/gam|es is no|
|000045e0| 20 67 6f 6f 64 20 61 74 | 20 63 61 6e 61 73 74 61 | good at| canasta|
|000045f0| 20 6c 69 6e 65 20 31 32 | 33 2e 0a 20 20 20 20 5c | line 12|3.. \|
|00004600| 2f 65 74 63 5c 2f 67 61 | 6d 65 73 20 69 73 20 6e |/etc\/ga|mes is n|
|00004610| 6f 20 67 6f 6f 64 2c 20 | 73 74 6f 70 70 65 64 20 |o good, |stopped |
|00004620| 61 74 20 63 61 6e 61 73 | 74 61 20 6c 69 6e 65 20 |at canas|ta line |
|00004630| 31 32 33 2e 0a 23 57 72 | 61 70 0a 23 46 0a 0a 53 |123..#Wr|ap.#F..S|
|00004640| 65 65 20 61 6c 73 6f 20 | 65 78 69 74 28 29 20 61 |ee also |exit() a|
|00004650| 6e 64 20 77 61 72 6e 28 | 29 2e 0a 0a 44 41 54 41 |nd warn(|)...DATA|
|00004660| f5 04 00 00 50 65 72 6c | 20 66 75 6e 63 74 69 6f |....Perl| functio|
|00004670| 6e 73 20 2d 20 64 6f 0a | 23 70 61 72 65 6e 74 20 |ns - do.|#parent |
|00004680| 70 65 72 6c 66 75 6e 63 | 0a 23 77 72 61 70 20 6f |perlfunc|.#wrap o|
|00004690| 6e 0a 23 49 6e 64 65 6e | 74 20 33 0a 23 49 6e 64 |n.#Inden|t 3.#Ind|
|000046a0| 65 6e 74 20 30 0a 64 6f | 20 42 4c 4f 43 4b 0a 23 |ent 0.do| BLOCK.#|
|000046b0| 49 6e 64 65 6e 74 20 33 | 0a 0a 4e 6f 74 20 72 65 |Indent 3|..Not re|
|000046c0| 61 6c 6c 79 20 61 20 66 | 75 6e 63 74 69 6f 6e 2e |ally a f|unction.|
|000046d0| 20 20 52 65 74 75 72 6e | 73 20 74 68 65 20 76 61 | Return|s the va|
|000046e0| 6c 75 65 20 6f 66 20 74 | 68 65 20 6c 61 73 74 20 |lue of t|he last |
|000046f0| 63 6f 6d 6d 61 6e 64 20 | 69 6e 20 74 68 65 0a 73 |command |in the.s|
|00004700| 65 71 75 65 6e 63 65 20 | 6f 66 20 63 6f 6d 6d 61 |equence |of comma|
|00004710| 6e 64 73 20 69 6e 64 69 | 63 61 74 65 64 20 62 79 |nds indi|cated by|
|00004720| 20 42 4c 4f 43 4b 2e 20 | 20 57 68 65 6e 20 6d 6f | BLOCK. | When mo|
|00004730| 64 69 66 69 65 64 20 62 | 79 20 61 20 6c 6f 6f 70 |dified b|y a loop|
|00004740| 0a 6d 6f 64 69 66 69 65 | 72 2c 20 65 78 65 63 75 |.modifie|r, execu|
|00004750| 74 65 73 20 74 68 65 20 | 42 4c 4f 43 4b 20 6f 6e |tes the |BLOCK on|
|00004760| 63 65 20 62 65 66 6f 72 | 65 20 74 65 73 74 69 6e |ce befor|e testin|
|00004770| 67 20 74 68 65 20 6c 6f | 6f 70 20 63 6f 6e 64 69 |g the lo|op condi|
|00004780| 74 69 6f 6e 2e 0a 28 4f | 6e 20 6f 74 68 65 72 20 |tion..(O|n other |
|00004790| 73 74 61 74 65 6d 65 6e | 74 73 20 74 68 65 20 6c |statemen|ts the l|
|000047a0| 6f 6f 70 20 6d 6f 64 69 | 66 69 65 72 73 20 74 65 |oop modi|fiers te|
|000047b0| 73 74 20 74 68 65 20 63 | 6f 6e 64 69 74 69 6f 6e |st the c|ondition|
|000047c0| 61 6c 20 66 69 72 73 74 | 2e 29 0a 0a 23 49 6e 64 |al first|.)..#Ind|
|000047d0| 65 6e 74 20 30 0a 64 6f | 20 53 55 42 52 4f 55 54 |ent 0.do| SUBROUT|
|000047e0| 49 4e 45 28 4c 49 53 54 | 29 0a 23 49 6e 64 65 6e |INE(LIST|).#Inden|
|000047f0| 74 20 33 0a 41 20 64 65 | 70 72 65 63 61 74 65 64 |t 3.A de|precated|
|00004800| 20 66 6f 72 6d 20 6f 66 | 20 73 75 62 72 6f 75 74 | form of| subrout|
|00004810| 69 6e 65 20 63 61 6c 6c | 2e 20 20 53 65 65 20 3c |ine call|. See <|
|00004820| 70 65 72 6c 73 75 62 3e | 2e 0a 0a 23 49 6e 64 65 |perlsub>|...#Inde|
|00004830| 6e 74 20 30 0a 64 6f 20 | 45 58 50 52 0a 23 49 6e |nt 0.do |EXPR.#In|
|00004840| 64 65 6e 74 20 33 0a 55 | 73 65 73 20 74 68 65 20 |dent 3.U|ses the |
|00004850| 76 61 6c 75 65 20 6f 66 | 20 45 58 50 52 20 61 73 |value of| EXPR as|
|00004860| 20 61 20 66 69 6c 65 6e | 61 6d 65 20 61 6e 64 20 | a filen|ame and |
|00004870| 65 78 65 63 75 74 65 73 | 20 74 68 65 20 63 6f 6e |executes| the con|
|00004880| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 0a 66 69 6c |tents of| the.fil|
|00004890| 65 20 61 73 20 61 20 50 | 65 72 6c 20 73 63 72 69 |e as a P|erl scri|
|000048a0| 70 74 2e 20 20 49 74 73 | 20 70 72 69 6d 61 72 79 |pt. Its| primary|
|000048b0| 20 75 73 65 20 69 73 20 | 74 6f 20 69 6e 63 6c 75 | use is |to inclu|
|000048c0| 64 65 20 73 75 62 72 6f | 75 74 69 6e 65 73 0a 66 |de subro|utines.f|
|000048d0| 72 6f 6d 20 61 20 50 65 | 72 6c 20 73 75 62 72 6f |rom a Pe|rl subro|
|000048e0| 75 74 69 6e 65 20 6c 69 | 62 72 61 72 79 2e 0a 0a |utine li|brary...|
|000048f0| 23 46 43 6f 64 65 0a 23 | 57 72 61 70 20 4e 6f 4a |#FCode.#|Wrap NoJ|
|00004900| 6f 69 6e 0a 20 20 20 20 | 64 6f 20 27 73 74 61 74 |oin. |do 'stat|
|00004910| 2e 70 6c 27 3b 0a 23 57 | 72 61 70 0a 23 46 0a 0a |.pl';.#W|rap.#F..|
|00004920| 69 73 20 6a 75 73 74 20 | 6c 69 6b 65 0a 0a 23 46 |is just |like..#F|
|00004930| 43 6f 64 65 0a 23 57 72 | 61 70 20 4e 6f 4a 6f 69 |Code.#Wr|ap NoJoi|
|00004940| 6e 0a 20 20 20 20 65 76 | 61 6c 20 60 63 61 74 20 |n. ev|al `cat |
|00004950| 73 74 61 74 2e 70 6c 60 | 3b 0a 23 57 72 61 70 0a |stat.pl`|;.#Wrap.|
|00004960| 23 46 0a 0a 65 78 63 65 | 70 74 20 74 68 61 74 20 |#F..exce|pt that |
|00004970| 69 74 27 73 20 6d 6f 72 | 65 20 65 66 66 69 63 69 |it's mor|e effici|
|00004980| 65 6e 74 2c 20 6d 6f 72 | 65 20 63 6f 6e 63 69 73 |ent, mor|e concis|
|00004990| 65 2c 20 6b 65 65 70 73 | 20 74 72 61 63 6b 20 6f |e, keeps| track o|
|000049a0| 66 20 74 68 65 0a 63 75 | 72 72 65 6e 74 20 66 69 |f the.cu|rrent fi|
|000049b0| 6c 65 6e 61 6d 65 20 66 | 6f 72 20 65 72 72 6f 72 |lename f|or error|
|000049c0| 20 6d 65 73 73 61 67 65 | 73 2c 20 61 6e 64 20 73 | message|s, and s|
|000049d0| 65 61 72 63 68 65 73 20 | 61 6c 6c 20 74 68 65 20 |earches |all the |
|000049e0| 7b 2a 7d 99 49 7b 2a 7d | 0a 6c 69 62 72 61 72 69 |{*}.I{*}|.librari|
|000049f0| 65 73 20 69 66 20 74 68 | 65 20 66 69 6c 65 20 69 |es if th|e file i|
|00004a00| 73 6e 27 74 20 69 6e 20 | 74 68 65 20 63 75 72 72 |sn't in |the curr|
|00004a10| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 20 28 73 |ent dire|ctory (s|
|00004a20| 65 65 20 61 6c 73 6f 20 | 74 68 65 20 40 49 4e 43 |ee also |the @INC|
|00004a30| 0a 61 72 72 61 79 20 69 | 6e 20 7b 66 43 69 74 65 |.array i|n {fCite|
|00004a40| 7d 50 72 65 64 65 66 69 | 6e 65 64 20 4e 61 6d 65 |}Predefi|ned Name|
|00004a50| 73 7b 66 7d 20 65 6e 74 | 72 79 20 69 6e 20 3c 70 |s{f} ent|ry in <p|
|00004a60| 65 72 6c 76 61 72 3e 29 | 2e 20 20 49 74 27 73 20 |erlvar>)|. It's |
|00004a70| 74 68 65 20 73 61 6d 65 | 2c 20 68 6f 77 65 76 65 |the same|, howeve|
|00004a80| 72 2c 20 69 6e 20 74 68 | 61 74 20 69 74 20 64 6f |r, in th|at it do|
|00004a90| 65 73 0a 72 65 70 61 72 | 73 65 20 74 68 65 20 66 |es.repar|se the f|
|00004aa0| 69 6c 65 20 65 76 65 72 | 79 20 74 69 6d 65 20 79 |ile ever|y time y|
|00004ab0| 6f 75 20 63 61 6c 6c 20 | 69 74 2c 20 73 6f 20 79 |ou call |it, so y|
|00004ac0| 6f 75 20 70 72 6f 62 61 | 62 6c 79 20 64 6f 6e 27 |ou proba|bly don'|
|00004ad0| 74 20 77 61 6e 74 20 74 | 6f 0a 64 6f 20 74 68 69 |t want t|o.do thi|
|00004ae0| 73 20 69 6e 73 69 64 65 | 20 61 20 6c 6f 6f 70 2e |s inside| a loop.|
|00004af0| 0a 0a 4e 6f 74 65 20 74 | 68 61 74 20 69 6e 63 6c |..Note t|hat incl|
|00004b00| 75 73 69 6f 6e 20 6f 66 | 20 6c 69 62 72 61 72 79 |usion of| library|
|00004b10| 20 6d 6f 64 75 6c 65 73 | 20 69 73 20 62 65 74 74 | modules| is bett|
|00004b20| 65 72 20 64 6f 6e 65 20 | 77 69 74 68 20 74 68 65 |er done |with the|
|00004b30| 0a 75 73 65 28 29 20 61 | 6e 64 20 72 65 71 75 69 |.use() a|nd requi|
|00004b40| 72 65 28 29 20 6f 70 65 | 72 61 74 6f 72 73 2e 0a |re() ope|rators..|
|00004b50| 0a 00 00 00 44 41 54 41 | bd 04 00 00 50 65 72 6c |....DATA|....Perl|
|00004b60| 20 66 75 6e 63 74 69 6f | 6e 73 20 2d 20 64 75 6d | functio|ns - dum|
|00004b70| 70 0a 23 70 61 72 65 6e | 74 20 70 65 72 6c 66 75 |p.#paren|t perlfu|
|00004b80| 6e 63 0a 23 77 72 61 70 | 20 6f 6e 0a 23 49 6e 64 |nc.#wrap| on.#Ind|
|00004b90| 65 6e 74 20 33 0a 23 49 | 6e 64 65 6e 74 20 30 0a |ent 3.#I|ndent 0.|
|00004ba0| 64 75 6d 70 20 4c 41 42 | 45 4c 0a 23 49 6e 64 65 |dump LAB|EL.#Inde|
|00004bb0| 6e 74 20 33 0a 0a 54 68 | 69 73 20 63 61 75 73 65 |nt 3..Th|is cause|
|00004bc0| 73 20 61 6e 20 69 6d 6d | 65 64 69 61 74 65 20 63 |s an imm|ediate c|
|00004bd0| 6f 72 65 20 64 75 6d 70 | 2e 20 20 50 72 69 6d 61 |ore dump|. Prima|
|00004be0| 72 69 6c 79 20 74 68 69 | 73 20 69 73 20 73 6f 20 |rily thi|s is so |
|00004bf0| 74 68 61 74 20 79 6f 75 | 20 63 61 6e 0a 75 73 65 |that you| can.use|
|00004c00| 20 74 68 65 20 7b 2a 7d | 75 6e 64 75 6d 70 7b 2a | the {*}|undump{*|
|00004c10| 7d 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 74 75 72 |} progra|m to tur|
|00004c20| 6e 20 79 6f 75 72 20 63 | 6f 72 65 20 64 75 6d 70 |n your c|ore dump|
|00004c30| 20 69 6e 74 6f 20 61 6e | 20 65 78 65 63 75 74 61 | into an| executa|
|00004c40| 62 6c 65 20 62 69 6e 61 | 72 79 0a 61 66 74 65 72 |ble bina|ry.after|
|00004c50| 20 68 61 76 69 6e 67 20 | 69 6e 69 74 69 61 6c 69 | having |initiali|
|00004c60| 7a 65 64 20 61 6c 6c 20 | 79 6f 75 72 20 76 61 72 |zed all |your var|
|00004c70| 69 61 62 6c 65 73 20 61 | 74 20 74 68 65 20 62 65 |iables a|t the be|
|00004c80| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 74 68 65 0a 70 |ginning |of the.p|
|00004c90| 72 6f 67 72 61 6d 2e 20 | 20 57 68 65 6e 20 74 68 |rogram. | When th|
|00004ca0| 65 20 6e 65 77 20 62 69 | 6e 61 72 79 20 69 73 20 |e new bi|nary is |
|00004cb0| 65 78 65 63 75 74 65 64 | 20 69 74 20 77 69 6c 6c |executed| it will|
|00004cc0| 20 62 65 67 69 6e 20 62 | 79 20 65 78 65 63 75 74 | begin b|y execut|
|00004cd0| 69 6e 67 20 61 0a 7b 66 | 43 6f 64 65 7d 67 6f 74 |ing a.{f|Code}got|
|00004ce0| 6f 20 4c 41 42 45 4c 7b | 66 7d 20 28 77 69 74 68 |o LABEL{|f} (with|
|00004cf0| 20 61 6c 6c 20 74 68 65 | 20 72 65 73 74 72 69 63 | all the| restric|
|00004d00| 74 69 6f 6e 73 20 74 68 | 61 74 20 7b 66 43 6f 64 |tions th|at {fCod|
|00004d10| 65 7d 67 6f 74 6f 7b 66 | 7d 20 73 75 66 66 65 72 |e}goto{f|} suffer|
|00004d20| 73 29 2e 20 20 54 68 69 | 6e 6b 20 6f 66 0a 69 74 |s). Thi|nk of.it|
|00004d30| 20 61 73 20 61 20 67 6f | 74 6f 20 77 69 74 68 20 | as a go|to with |
|00004d40| 61 6e 20 69 6e 74 65 72 | 76 65 6e 69 6e 67 20 63 |an inter|vening c|
|00004d50| 6f 72 65 20 64 75 6d 70 | 20 61 6e 64 20 72 65 69 |ore dump| and rei|
|00004d60| 6e 63 61 72 6e 61 74 69 | 6f 6e 2e 20 20 49 66 20 |ncarnati|on. If |
|00004d70| 4c 41 42 45 4c 0a 69 73 | 20 6f 6d 69 74 74 65 64 |LABEL.is| omitted|
|00004d80| 2c 20 72 65 73 74 61 72 | 74 73 20 74 68 65 20 70 |, restar|ts the p|
|00004d90| 72 6f 67 72 61 6d 20 66 | 72 6f 6d 20 74 68 65 20 |rogram f|rom the |
|00004da0| 74 6f 70 2e 20 20 57 41 | 52 4e 49 4e 47 3a 20 61 |top. WA|RNING: a|
|00004db0| 6e 79 20 66 69 6c 65 73 | 0a 6f 70 65 6e 65 64 20 |ny files|.opened |
|00004dc0| 61 74 20 74 68 65 20 74 | 69 6d 65 20 6f 66 20 74 |at the t|ime of t|
|00004dd0| 68 65 20 64 75 6d 70 20 | 77 69 6c 6c 20 4e 4f 54 |he dump |will NOT|
|00004de0| 20 62 65 20 6f 70 65 6e | 20 61 6e 79 20 6d 6f 72 | be open| any mor|
|00004df0| 65 20 77 68 65 6e 20 74 | 68 65 0a 70 72 6f 67 72 |e when t|he.progr|
|00004e00| 61 6d 20 69 73 20 72 65 | 69 6e 63 61 72 6e 61 74 |am is re|incarnat|
|00004e10| 65 64 2c 20 77 69 74 68 | 20 70 6f 73 73 69 62 6c |ed, with| possibl|
|00004e20| 65 20 72 65 73 75 6c 74 | 69 6e 67 20 63 6f 6e 66 |e result|ing conf|
|00004e30| 75 73 69 6f 6e 20 6f 6e | 20 74 68 65 20 70 61 72 |usion on| the par|
|00004e40| 74 0a 6f 66 20 50 65 72 | 6c 2e 20 20 53 65 65 20 |t.of Per|l. See |
|00004e50| 61 6c 73 6f 20 7b 2a 7d | 99 75 7b 2a 7d 20 6f 70 |also {*}|.u{*} op|
|00004e60| 74 69 6f 6e 20 69 6e 20 | 3c 70 65 72 6c 72 75 6e |tion in |<perlrun|
|00004e70| 3e 2e 0a 0a 45 78 61 6d | 70 6c 65 3a 0a 0a 23 46 |>...Exam|ple:..#F|
|00004e80| 43 6f 64 65 0a 23 57 72 | 61 70 20 4e 6f 4a 6f 69 |Code.#Wr|ap NoJoi|
|00004e90| 6e 0a 20 20 20 20 23 21 | 5c 2f 75 73 72 5c 2f 62 |n. #!|\/usr\/b|
|00004ea0| 69 6e 5c 2f 70 65 72 6c | 0a 20 20 20 20 72 65 71 |in\/perl|. req|
|00004eb0| 75 69 72 65 20 27 67 65 | 74 6f 70 74 2e 70 6c 27 |uire 'ge|topt.pl'|
|00004ec0| 3b 0a 20 20 20 20 72 65 | 71 75 69 72 65 20 27 73 |;. re|quire 's|
|00004ed0| 74 61 74 2e 70 6c 27 3b | 0a 20 20 20 20 25 64 61 |tat.pl';|. %da|
|00004ee0| 79 73 20 3d 20 28 0a 20 | 20 20 20 20 20 20 20 27 |ys = (. | '|
|00004ef0| 53 75 6e 27 20 3d 5c 3e | 20 31 2c 0a 20 20 20 20 |Sun' =\>| 1,. |
|00004f00| 20 20 20 20 27 4d 6f 6e | 27 20 3d 5c 3e 20 32 2c | 'Mon|' =\> 2,|
|00004f10| 0a 20 20 20 20 20 20 20 | 20 27 54 75 65 27 20 3d |. | 'Tue' =|
|00004f20| 5c 3e 20 33 2c 0a 20 20 | 20 20 20 20 20 20 27 57 |\> 3,. | 'W|
|00004f30| 65 64 27 20 3d 5c 3e 20 | 34 2c 0a 20 20 20 20 20 |ed' =\> |4,. |
|00004f40| 20 20 20 27 54 68 75 27 | 20 3d 5c 3e 20 35 2c 0a | 'Thu'| =\> 5,.|
|00004f50| 20 20 20 20 20 20 20 20 | 27 46 72 69 27 20 3d 5c | |'Fri' =\|
|00004f60| 3e 20 36 2c 0a 20 20 20 | 20 20 20 20 20 27 53 61 |> 6,. | 'Sa|
|00004f70| 74 27 20 3d 5c 3e 20 37 | 2c 0a 20 20 20 20 29 3b |t' =\> 7|,. );|
|00004f80| 0a 23 57 72 61 70 0a 23 | 46 0a 0a 23 46 43 6f 64 |.#Wrap.#|F..#FCod|
|00004f90| 65 0a 23 57 72 61 70 20 | 4e 6f 4a 6f 69 6e 0a 20 |e.#Wrap |NoJoin. |
|00004fa0| 20 20 20 64 75 6d 70 20 | 51 55 49 43 4b 53 54 41 | dump |QUICKSTA|
|00004fb0| 52 54 20 69 66 20 24 41 | 52 47 56 5b 30 5d 20 65 |RT if $A|RGV[0] e|
|00004fc0| 71 20 27 99 64 27 3b 0a | 23 57 72 61 70 0a 23 46 |q '.d';.|#Wrap.#F|
|00004fd0| 0a 0a 23 46 43 6f 64 65 | 0a 23 57 72 61 70 20 4e |..#FCode|.#Wrap N|
|00004fe0| 6f 4a 6f 69 6e 0a 20 20 | 20 20 51 55 49 43 4b 53 |oJoin. | QUICKS|
|00004ff0| 54 41 52 54 3a 0a 20 20 | 20 20 47 65 74 6f 70 74 |TART:. | Getopt|
|00005000| 28 27 66 27 29 3b 0a 23 | 57 72 61 70 0a 23 46 0a |('f');.#|Wrap.#F.|
|00005010| 0a 00 00 00 44 41 54 41 | 82 46 00 00 43 6f 70 79 |....DATA|.F..Copy|
|00005020| 69 6e 67 20 70 65 72 6c | 0a 23 77 72 61 70 20 6f |ing perl|.#wrap o|
|00005030| 6e 0a 54 68 69 73 20 70 | 72 6f 67 72 61 6d 20 69 |n.This p|rogram i|
|00005040| 73 20 66 72 65 65 20 73 | 6f 66 74 77 61 72 65 3b |s free s|oftware;|
|00005050| 20 79 6f 75 20 63 61 6e | 20 72 65 64 69 73 74 72 | you can| redistr|
|00005060| 69 62 75 74 65 20 69 74 | 20 61 6e 64 2f 6f 72 20 |ibute it| and/or |
|00005070| 6d 6f 64 69 66 79 20 69 | 74 20 75 6e 64 65 72 20 |modify i|t under |
|00005080| 74 68 65 20 74 65 72 6d | 73 20 6f 66 20 65 69 74 |the term|s of eit|
|00005090| 68 65 72 3a 0a 0a 23 69 | 6e 64 65 6e 74 20 38 0a |her:..#i|ndent 8.|
|000050a0| 61 29 20 74 68 65 20 3c | 47 4e 55 20 47 65 6e 65 |a) the <|GNU Gene|
|000050b0| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|000050c0| 73 65 3d 3e 2e 73 75 62 | 31 3e 20 61 73 20 70 75 |se=>.sub|1> as pu|
|000050d0| 62 6c 69 73 68 65 64 20 | 62 79 20 74 68 65 20 46 |blished |by the F|
|000050e0| 72 65 65 0a 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree.Soft|ware Fou|
|000050f0| 6e 64 61 74 69 6f 6e 3b | 20 65 69 74 68 65 72 20 |ndation;| either |
|00005100| 76 65 72 73 69 6f 6e 20 | 31 2c 20 6f 72 20 28 61 |version |1, or (a|
|00005110| 74 20 79 6f 75 72 20 6f | 70 74 69 6f 6e 29 20 61 |t your o|ption) a|
|00005120| 6e 79 0a 6c 61 74 65 72 | 20 76 65 72 73 69 6f 6e |ny.later| version|
|00005130| 2c 20 6f 72 0a 0a 62 29 | 20 74 68 65 20 22 3c 41 |, or..b)| the "<A|
|00005140| 72 74 69 73 74 69 63 20 | 4c 69 63 65 6e 73 65 3d |rtistic |License=|
|00005150| 3e 2e 73 75 62 32 3e 22 | 20 77 68 69 63 68 20 63 |>.sub2>"| which c|
|00005160| 6f 6d 65 73 20 77 69 74 | 68 20 74 68 69 73 20 4b |omes wit|h this K|
|00005170| 69 74 2e 0a 23 69 6e 64 | 65 6e 74 0a 0a 54 68 69 |it..#ind|ent..Thi|
|00005180| 73 20 70 72 6f 67 72 61 | 6d 20 69 73 20 64 69 73 |s progra|m is dis|
|00005190| 74 72 69 62 75 74 65 64 | 20 69 6e 20 74 68 65 20 |tributed| in the |
|000051a0| 68 6f 70 65 20 74 68 61 | 74 20 69 74 20 77 69 6c |hope tha|t it wil|
|000051b0| 6c 20 62 65 20 75 73 65 | 66 75 6c 2c 0a 62 75 74 |l be use|ful,.but|
|000051c0| 20 57 49 54 48 4f 55 54 | 20 41 4e 59 20 57 41 52 | WITHOUT| ANY WAR|
|000051d0| 52 41 4e 54 59 3b 20 77 | 69 74 68 6f 75 74 20 65 |RANTY; w|ithout e|
|000051e0| 76 65 6e 20 74 68 65 20 | 69 6d 70 6c 69 65 64 20 |ven the |implied |
|000051f0| 77 61 72 72 61 6e 74 79 | 20 6f 66 0a 4d 45 52 43 |warranty| of.MERC|
|00005200| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00005210| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00005220| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00005230| 20 20 53 65 65 20 65 69 | 74 68 65 72 0a 74 68 65 | See ei|ther.the|
|00005240| 20 47 4e 55 20 47 65 6e | 65 72 61 6c 20 50 75 62 | GNU Gen|eral Pub|
|00005250| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 6f 72 20 74 |lic Lice|nse or t|
|00005260| 68 65 20 41 72 74 69 73 | 74 69 63 20 4c 69 63 65 |he Artis|tic Lice|
|00005270| 6e 73 65 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |nse for |more det|
|00005280| 61 69 6c 73 2e 0a 0a 46 | 6f 72 20 74 68 6f 73 65 |ails...F|or those|
|00005290| 20 6f 66 20 79 6f 75 20 | 74 68 61 74 20 63 68 6f | of you |that cho|
|000052a0| 6f 73 65 20 74 6f 20 75 | 73 65 20 74 68 65 20 47 |ose to u|se the G|
|000052b0| 4e 55 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |NU Gener|al Publi|
|000052c0| 63 20 4c 69 63 65 6e 73 | 65 2c 0a 6d 79 20 69 6e |c Licens|e,.my in|
|000052d0| 74 65 72 70 72 65 74 61 | 74 69 6f 6e 20 6f 66 20 |terpreta|tion of |
|000052e0| 74 68 65 20 47 4e 55 20 | 47 65 6e 65 72 61 6c 20 |the GNU |General |
|000052f0| 50 75 62 6c 69 63 20 4c | 69 63 65 6e 73 65 20 69 |Public L|icense i|
|00005300| 73 20 74 68 61 74 20 6e | 6f 20 50 65 72 6c 0a 73 |s that n|o Perl.s|
|00005310| 63 72 69 70 74 20 66 61 | 6c 6c 73 20 75 6e 64 65 |cript fa|lls unde|
|00005320| 72 20 74 68 65 20 74 65 | 72 6d 73 20 6f 66 20 74 |r the te|rms of t|
|00005330| 68 65 20 47 50 4c 20 75 | 6e 6c 65 73 73 20 79 6f |he GPL u|nless yo|
|00005340| 75 20 65 78 70 6c 69 63 | 69 74 6c 79 20 70 75 74 |u explic|itly put|
|00005350| 0a 73 61 69 64 20 73 63 | 72 69 70 74 20 75 6e 64 |.said sc|ript und|
|00005360| 65 72 20 74 68 65 20 74 | 65 72 6d 73 20 6f 66 20 |er the t|erms of |
|00005370| 74 68 65 20 47 50 4c 20 | 79 6f 75 72 73 65 6c 66 |the GPL |yourself|
|00005380| 2e 20 20 46 75 72 74 68 | 65 72 6d 6f 72 65 2c 20 |. Furth|ermore, |
|00005390| 61 6e 79 0a 6f 62 6a 65 | 63 74 20 63 6f 64 65 20 |any.obje|ct code |
|000053a0| 6c 69 6e 6b 65 64 20 77 | 69 74 68 20 70 65 72 6c |linked w|ith perl|
|000053b0| 20 64 6f 65 73 20 6e 6f | 74 20 61 75 74 6f 6d 61 | does no|t automa|
|000053c0| 74 69 63 61 6c 6c 79 20 | 66 61 6c 6c 20 75 6e 64 |tically |fall und|
|000053d0| 65 72 20 74 68 65 0a 74 | 65 72 6d 73 20 6f 66 20 |er the.t|erms of |
|000053e0| 74 68 65 20 47 50 4c 2c | 20 70 72 6f 76 69 64 65 |the GPL,| provide|
|000053f0| 64 20 73 75 63 68 20 6f | 62 6a 65 63 74 20 63 6f |d such o|bject co|
|00005400| 64 65 20 6f 6e 6c 79 20 | 61 64 64 73 20 64 65 66 |de only |adds def|
|00005410| 69 6e 69 74 69 6f 6e 73 | 0a 6f 66 20 73 75 62 72 |initions|.of subr|
|00005420| 6f 75 74 69 6e 65 73 20 | 61 6e 64 20 76 61 72 69 |outines |and vari|
|00005430| 61 62 6c 65 73 2c 20 61 | 6e 64 20 64 6f 65 73 20 |ables, a|nd does |
|00005440| 6e 6f 74 20 6f 74 68 65 | 72 77 69 73 65 20 69 6d |not othe|rwise im|
|00005450| 70 61 69 72 20 74 68 65 | 0a 72 65 73 75 6c 74 69 |pair the|.resulti|
|00005460| 6e 67 20 69 6e 74 65 72 | 70 72 65 74 65 72 20 66 |ng inter|preter f|
|00005470| 72 6f 6d 20 65 78 65 63 | 75 74 69 6e 67 20 61 6e |rom exec|uting an|
|00005480| 79 20 73 74 61 6e 64 61 | 72 64 20 50 65 72 6c 20 |y standa|rd Perl |
|00005490| 73 63 72 69 70 74 2e 20 | 20 49 0a 63 6f 6e 73 69 |script. | I.consi|
|000054a0| 64 65 72 20 6c 69 6e 6b | 69 6e 67 20 69 6e 20 43 |der link|ing in C|
|000054b0| 20 73 75 62 72 6f 75 74 | 69 6e 65 73 20 69 6e 20 | subrout|ines in |
|000054c0| 74 68 69 73 20 6d 61 6e | 6e 65 72 20 74 6f 20 62 |this man|ner to b|
|000054d0| 65 20 74 68 65 20 6d 6f | 72 61 6c 0a 65 71 75 69 |e the mo|ral.equi|
|000054e0| 76 61 6c 65 6e 74 20 6f | 66 20 64 65 66 69 6e 69 |valent o|f defini|
|000054f0| 6e 67 20 73 75 62 72 6f | 75 74 69 6e 65 73 20 69 |ng subro|utines i|
|00005500| 6e 20 74 68 65 20 50 65 | 72 6c 20 6c 61 6e 67 75 |n the Pe|rl langu|
|00005510| 61 67 65 20 69 74 73 65 | 6c 66 2e 20 20 59 6f 75 |age itse|lf. You|
|00005520| 0a 6d 61 79 20 73 65 6c | 6c 20 73 75 63 68 20 61 |.may sel|l such a|
|00005530| 6e 20 6f 62 6a 65 63 74 | 20 66 69 6c 65 20 61 73 |n object| file as|
|00005540| 20 70 72 6f 70 72 69 65 | 74 61 72 79 20 70 72 6f | proprie|tary pro|
|00005550| 76 69 64 65 64 20 74 68 | 61 74 20 79 6f 75 20 70 |vided th|at you p|
|00005560| 72 6f 76 69 64 65 0a 6f | 72 20 6f 66 66 65 72 20 |rovide.o|r offer |
|00005570| 74 6f 20 70 72 6f 76 69 | 64 65 20 74 68 65 20 50 |to provi|de the P|
|00005580| 65 72 6c 20 73 6f 75 72 | 63 65 2c 20 61 73 20 73 |erl sour|ce, as s|
|00005590| 70 65 63 69 66 69 65 64 | 20 62 79 20 74 68 65 20 |pecified| by the |
|000055a0| 47 4e 55 20 47 65 6e 65 | 72 61 6c 0a 50 75 62 6c |GNU Gene|ral.Publ|
|000055b0| 69 63 20 4c 69 63 65 6e | 73 65 2e 20 20 28 54 68 |ic Licen|se. (Th|
|000055c0| 69 73 20 69 73 20 6d 65 | 72 65 6c 79 20 61 6e 20 |is is me|rely an |
|000055d0| 61 6c 74 65 72 6e 61 74 | 65 20 77 61 79 20 6f 66 |alternat|e way of|
|000055e0| 20 73 70 65 63 69 66 79 | 69 6e 67 20 69 6e 70 75 | specify|ing inpu|
|000055f0| 74 0a 74 6f 20 74 68 65 | 20 70 72 6f 67 72 61 6d |t.to the| program|
|00005600| 2e 29 20 20 59 6f 75 20 | 6d 61 79 20 61 6c 73 6f |.) You |may also|
|00005610| 20 73 65 6c 6c 20 61 20 | 62 69 6e 61 72 79 20 70 | sell a |binary p|
|00005620| 72 6f 64 75 63 65 64 20 | 62 79 20 74 68 65 20 64 |roduced |by the d|
|00005630| 75 6d 70 69 6e 67 20 6f | 66 0a 61 20 72 75 6e 6e |umping o|f.a runn|
|00005640| 69 6e 67 20 50 65 72 6c | 20 73 63 72 69 70 74 20 |ing Perl| script |
|00005650| 74 68 61 74 20 62 65 6c | 6f 6e 67 73 20 74 6f 20 |that bel|ongs to |
|00005660| 79 6f 75 2c 20 70 72 6f | 76 69 64 65 64 20 74 68 |you, pro|vided th|
|00005670| 61 74 20 79 6f 75 20 70 | 72 6f 76 69 64 65 20 6f |at you p|rovide o|
|00005680| 72 0a 6f 66 66 65 72 20 | 74 6f 20 70 72 6f 76 69 |r.offer |to provi|
|00005690| 64 65 20 74 68 65 20 50 | 65 72 6c 20 73 6f 75 72 |de the P|erl sour|
|000056a0| 63 65 20 61 73 20 73 70 | 65 63 69 66 69 65 64 20 |ce as sp|ecified |
|000056b0| 62 79 20 74 68 65 20 47 | 50 4c 2e 20 20 28 54 68 |by the G|PL. (Th|
|000056c0| 65 0a 66 61 63 74 20 74 | 68 61 74 20 61 20 50 65 |e.fact t|hat a Pe|
|000056d0| 72 6c 20 69 6e 74 65 72 | 70 72 65 74 65 72 20 61 |rl inter|preter a|
|000056e0| 6e 64 20 79 6f 75 72 20 | 63 6f 64 65 20 61 72 65 |nd your |code are|
|000056f0| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 62 69 6e | in the |same bin|
|00005700| 61 72 79 20 66 69 6c 65 | 0a 69 73 2c 20 69 6e 20 |ary file|.is, in |
|00005710| 74 68 69 73 20 63 61 73 | 65 2c 20 61 20 66 6f 72 |this cas|e, a for|
|00005720| 6d 20 6f 66 20 6d 65 72 | 65 20 61 67 67 72 65 67 |m of mer|e aggreg|
|00005730| 61 74 69 6f 6e 2e 29 20 | 20 54 68 69 73 20 69 73 |ation.) | This is|
|00005740| 20 6d 79 20 69 6e 74 65 | 72 70 72 65 74 61 74 69 | my inte|rpretati|
|00005750| 6f 6e 0a 6f 66 20 74 68 | 65 20 47 50 4c 2e 20 20 |on.of th|e GPL. |
|00005760| 49 66 20 79 6f 75 20 73 | 74 69 6c 6c 20 68 61 76 |If you s|till hav|
|00005770| 65 20 63 6f 6e 63 65 72 | 6e 73 20 6f 72 20 64 69 |e concer|ns or di|
|00005780| 66 66 69 63 75 6c 74 69 | 65 73 20 75 6e 64 65 72 |fficulti|es under|
|00005790| 73 74 61 6e 64 69 6e 67 | 0a 6d 79 20 69 6e 74 65 |standing|.my inte|
|000057a0| 6e 74 2c 20 66 65 65 6c | 20 66 72 65 65 20 74 6f |nt, feel| free to|
|000057b0| 20 63 6f 6e 74 61 63 74 | 20 6d 65 2e 20 20 4f 66 | contact| me. Of|
|000057c0| 20 63 6f 75 72 73 65 2c | 20 74 68 65 20 41 72 74 | course,| the Art|
|000057d0| 69 73 74 69 63 20 4c 69 | 63 65 6e 73 65 0a 73 70 |istic Li|cense.sp|
|000057e0| 65 6c 6c 73 20 61 6c 6c | 20 74 68 69 73 20 6f 75 |ells all| this ou|
|000057f0| 74 20 66 6f 72 20 79 6f | 75 72 20 70 72 6f 74 65 |t for yo|ur prote|
|00005800| 63 74 69 6f 6e 2c 20 73 | 6f 20 79 6f 75 20 6d 61 |ction, s|o you ma|
|00005810| 79 20 70 72 65 66 65 72 | 20 74 6f 20 75 73 65 20 |y prefer| to use |
|00005820| 74 68 61 74 2e 0a 23 73 | 75 62 70 61 67 65 20 73 |that..#s|ubpage s|
|00005830| 75 62 31 0a 47 4e 55 20 | 47 45 4e 45 52 41 4c 20 |ub1.GNU |GENERAL |
|00005840| 50 55 42 4c 49 43 20 4c | 49 43 45 4e 53 45 0a 23 |PUBLIC L|ICENSE.#|
|00005850| 77 72 61 70 20 4e 6f 4a | 6f 69 6e 0a 0a 0a 7b 66 |wrap NoJ|oin...{f|
|00005860| 48 33 7d 47 4e 55 20 47 | 45 4e 45 52 41 4c 20 50 |H3}GNU G|ENERAL P|
|00005870| 55 42 4c 49 43 20 4c 49 | 43 45 4e 53 45 7b 66 7d |UBLIC LI|CENSE{f}|
|00005880| 0a 0a 56 65 72 73 69 6f | 6e 20 31 2c 20 46 65 62 |..Versio|n 1, Feb|
|00005890| 72 75 61 72 79 20 31 39 | 38 39 0a 0a 20 43 6f 70 |ruary 19|89.. Cop|
|000058a0| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 38 39 20 |yright (|C) 1989 |
|000058b0| 46 72 65 65 20 53 6f 66 | 74 77 61 72 65 20 46 6f |Free Sof|tware Fo|
|000058c0| 75 6e 64 61 74 69 6f 6e | 2c 20 49 6e 63 2e 0a 20 |undation|, Inc.. |
|000058d0| 36 37 35 20 4d 61 73 73 | 20 41 76 65 2c 20 43 61 |675 Mass| Ave, Ca|
|000058e0| 6d 62 72 69 64 67 65 2c | 20 4d 41 20 30 32 31 33 |mbridge,| MA 0213|
|000058f0| 39 2c 20 55 53 41 0a 0a | 45 76 65 72 79 6f 6e 65 |9, USA..|Everyone|
|00005900| 20 69 73 20 70 65 72 6d | 69 74 74 65 64 20 74 6f | is perm|itted to|
|00005910| 20 63 6f 70 79 20 61 6e | 64 20 64 69 73 74 72 69 | copy an|d distri|
|00005920| 62 75 74 65 20 76 65 72 | 62 61 74 69 6d 20 63 6f |bute ver|batim co|
|00005930| 70 69 65 73 20 6f 66 20 | 74 68 69 73 20 6c 69 63 |pies of |this lic|
|00005940| 65 6e 73 65 20 64 6f 63 | 75 6d 65 6e 74 2c 20 62 |ense doc|ument, b|
|00005950| 75 74 20 63 68 61 6e 67 | 69 6e 67 20 69 74 20 69 |ut chang|ing it i|
|00005960| 73 20 6e 6f 74 20 61 6c | 6c 6f 77 65 64 2e 0a 0a |s not al|lowed...|
|00005970| 7b 46 48 34 7d 50 72 65 | 61 6d 62 6c 65 7b 46 7d |{FH4}Pre|amble{F}|
|00005980| 0a 0a 20 20 54 68 65 20 | 6c 69 63 65 6e 73 65 20 |.. The |license |
|00005990| 61 67 72 65 65 6d 65 6e | 74 73 20 6f 66 20 6d 6f |agreemen|ts of mo|
|000059a0| 73 74 20 73 6f 66 74 77 | 61 72 65 20 63 6f 6d 70 |st softw|are comp|
|000059b0| 61 6e 69 65 73 20 74 72 | 79 20 74 6f 20 6b 65 65 |anies tr|y to kee|
|000059c0| 70 20 75 73 65 72 73 20 | 61 74 20 74 68 65 20 6d |p users |at the m|
|000059d0| 65 72 63 79 20 6f 66 20 | 74 68 6f 73 65 20 63 6f |ercy of |those co|
|000059e0| 6d 70 61 6e 69 65 73 2e | 20 20 42 79 20 63 6f 6e |mpanies.| By con|
|000059f0| 74 72 61 73 74 2c 20 6f | 75 72 20 47 65 6e 65 72 |trast, o|ur Gener|
|00005a00| 61 6c 20 50 75 62 6c 69 | 63 20 4c 69 63 65 6e 73 |al Publi|c Licens|
|00005a10| 65 20 69 73 20 69 6e 74 | 65 6e 64 65 64 20 74 6f |e is int|ended to|
|00005a20| 20 67 75 61 72 61 6e 74 | 65 65 20 79 6f 75 72 20 | guarant|ee your |
|00005a30| 66 72 65 65 64 6f 6d 20 | 74 6f 20 73 68 61 72 65 |freedom |to share|
|00005a40| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 66 72 65 65 | and cha|nge free|
|00005a50| 20 73 6f 66 74 77 61 72 | 65 2d 2d 74 6f 20 6d 61 | softwar|e--to ma|
|00005a60| 6b 65 20 73 75 72 65 20 | 74 68 65 20 73 6f 66 74 |ke sure |the soft|
|00005a70| 77 61 72 65 20 69 73 20 | 66 72 65 65 20 66 6f 72 |ware is |free for|
|00005a80| 20 61 6c 6c 20 69 74 73 | 20 75 73 65 72 73 2e 20 | all its| users. |
|00005a90| 20 54 68 65 20 47 65 6e | 65 72 61 6c 20 50 75 62 | The Gen|eral Pub|
|00005aa0| 6c 69 63 20 4c 69 63 65 | 6e 73 65 20 61 70 70 6c |lic Lice|nse appl|
|00005ab0| 69 65 73 20 74 6f 20 74 | 68 65 20 46 72 65 65 20 |ies to t|he Free |
|00005ac0| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|00005ad0| 69 6f 6e 27 73 20 73 6f | 66 74 77 61 72 65 20 61 |ion's so|ftware a|
|00005ae0| 6e 64 20 74 6f 20 61 6e | 79 20 6f 74 68 65 72 20 |nd to an|y other |
|00005af0| 70 72 6f 67 72 61 6d 20 | 77 68 6f 73 65 20 61 75 |program |whose au|
|00005b00| 74 68 6f 72 73 20 63 6f | 6d 6d 69 74 20 74 6f 20 |thors co|mmit to |
|00005b10| 75 73 69 6e 67 20 69 74 | 2e 20 59 6f 75 20 63 61 |using it|. You ca|
|00005b20| 6e 20 75 73 65 20 69 74 | 20 66 6f 72 20 79 6f 75 |n use it| for you|
|00005b30| 72 20 70 72 6f 67 72 61 | 6d 73 2c 20 74 6f 6f 2e |r progra|ms, too.|
|00005b40| 0a 0a 20 20 57 68 65 6e | 20 77 65 20 73 70 65 61 |.. When| we spea|
|00005b50| 6b 20 6f 66 20 66 72 65 | 65 20 73 6f 66 74 77 61 |k of fre|e softwa|
|00005b60| 72 65 2c 20 77 65 20 61 | 72 65 20 72 65 66 65 72 |re, we a|re refer|
|00005b70| 72 69 6e 67 20 74 6f 20 | 66 72 65 65 64 6f 6d 2c |ring to |freedom,|
|00005b80| 20 6e 6f 74 20 70 72 69 | 63 65 2e 20 20 53 70 65 | not pri|ce. Spe|
|00005b90| 63 69 66 69 63 61 6c 6c | 79 2c 20 74 68 65 20 47 |cificall|y, the G|
|00005ba0| 65 6e 65 72 61 6c 20 50 | 75 62 6c 69 63 20 4c 69 |eneral P|ublic Li|
|00005bb0| 63 65 6e 73 65 20 69 73 | 20 64 65 73 69 67 6e 65 |cense is| designe|
|00005bc0| 64 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 74 |d to mak|e sure t|
|00005bd0| 68 61 74 20 79 6f 75 20 | 68 61 76 65 20 74 68 65 |hat you |have the|
|00005be0| 20 66 72 65 65 64 6f 6d | 20 74 6f 20 67 69 76 65 | freedom| to give|
|00005bf0| 20 61 77 61 79 20 6f 72 | 20 73 65 6c 6c 20 63 6f | away or| sell co|
|00005c00| 70 69 65 73 20 6f 66 20 | 66 72 65 65 20 73 6f 66 |pies of |free sof|
|00005c10| 74 77 61 72 65 2c 20 74 | 68 61 74 20 79 6f 75 20 |tware, t|hat you |
|00005c20| 72 65 63 65 69 76 65 20 | 73 6f 75 72 63 65 20 63 |receive |source c|
|00005c30| 6f 64 65 20 6f 72 20 63 | 61 6e 20 67 65 74 20 69 |ode or c|an get i|
|00005c40| 74 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 69 74 |t if you| want it|
|00005c50| 2c 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 63 |, that y|ou can c|
|00005c60| 68 61 6e 67 65 20 74 68 | 65 20 73 6f 66 74 77 61 |hange th|e softwa|
|00005c70| 72 65 20 6f 72 20 75 73 | 65 20 70 69 65 63 65 73 |re or us|e pieces|
|00005c80| 20 6f 66 20 69 74 20 69 | 6e 20 6e 65 77 20 66 72 | of it i|n new fr|
|00005c90| 65 65 20 70 72 6f 67 72 | 61 6d 73 3b 20 61 6e 64 |ee progr|ams; and|
|00005ca0| 20 74 68 61 74 20 79 6f | 75 20 6b 6e 6f 77 20 79 | that yo|u know y|
|00005cb0| 6f 75 20 63 61 6e 20 64 | 6f 20 74 68 65 73 65 20 |ou can d|o these |
|00005cc0| 74 68 69 6e 67 73 2e 0a | 0a 20 20 54 6f 20 70 72 |things..|. To pr|
|00005cd0| 6f 74 65 63 74 20 79 6f | 75 72 20 72 69 67 68 74 |otect yo|ur right|
|00005ce0| 73 2c 20 77 65 20 6e 65 | 65 64 20 74 6f 20 6d 61 |s, we ne|ed to ma|
|00005cf0| 6b 65 20 72 65 73 74 72 | 69 63 74 69 6f 6e 73 20 |ke restr|ictions |
|00005d00| 74 68 61 74 20 66 6f 72 | 62 69 64 20 61 6e 79 6f |that for|bid anyo|
|00005d10| 6e 65 20 74 6f 20 64 65 | 6e 79 20 79 6f 75 20 74 |ne to de|ny you t|
|00005d20| 68 65 73 65 20 72 69 67 | 68 74 73 20 6f 72 20 74 |hese rig|hts or t|
|00005d30| 6f 20 61 73 6b 20 79 6f | 75 20 74 6f 20 73 75 72 |o ask yo|u to sur|
|00005d40| 72 65 6e 64 65 72 20 74 | 68 65 20 72 69 67 68 74 |render t|he right|
|00005d50| 73 2e 20 54 68 65 73 65 | 20 72 65 73 74 72 69 63 |s. These| restric|
|00005d60| 74 69 6f 6e 73 20 74 72 | 61 6e 73 6c 61 74 65 20 |tions tr|anslate |
|00005d70| 74 6f 20 63 65 72 74 61 | 69 6e 20 72 65 73 70 6f |to certa|in respo|
|00005d80| 6e 73 69 62 69 6c 69 74 | 69 65 73 20 66 6f 72 20 |nsibilit|ies for |
|00005d90| 79 6f 75 20 69 66 20 79 | 6f 75 20 64 69 73 74 72 |you if y|ou distr|
|00005da0| 69 62 75 74 65 20 63 6f | 70 69 65 73 20 6f 66 20 |ibute co|pies of |
|00005db0| 74 68 65 20 73 6f 66 74 | 77 61 72 65 2c 20 6f 72 |the soft|ware, or|
|00005dc0| 20 69 66 20 79 6f 75 20 | 6d 6f 64 69 66 79 20 69 | if you |modify i|
|00005dd0| 74 2e 0a 0a 20 20 46 6f | 72 20 65 78 61 6d 70 6c |t... Fo|r exampl|
|00005de0| 65 2c 20 69 66 20 79 6f | 75 20 64 69 73 74 72 69 |e, if yo|u distri|
|00005df0| 62 75 74 65 20 63 6f 70 | 69 65 73 20 6f 66 20 61 |bute cop|ies of a|
|00005e00| 20 73 75 63 68 20 61 20 | 70 72 6f 67 72 61 6d 2c | such a |program,|
|00005e10| 20 77 68 65 74 68 65 72 | 20 67 72 61 74 69 73 20 | whether| gratis |
|00005e20| 6f 72 20 66 6f 72 20 61 | 20 66 65 65 2c 20 79 6f |or for a| fee, yo|
|00005e30| 75 20 6d 75 73 74 20 67 | 69 76 65 20 74 68 65 20 |u must g|ive the |
|00005e40| 72 65 63 69 70 69 65 6e | 74 73 20 61 6c 6c 20 74 |recipien|ts all t|
|00005e50| 68 65 20 72 69 67 68 74 | 73 20 74 68 61 74 20 79 |he right|s that y|
|00005e60| 6f 75 20 68 61 76 65 2e | 20 20 59 6f 75 20 6d 75 |ou have.| You mu|
|00005e70| 73 74 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 61 |st make |sure tha|
|00005e80| 74 20 74 68 65 79 2c 20 | 74 6f 6f 2c 20 72 65 63 |t they, |too, rec|
|00005e90| 65 69 76 65 20 6f 72 20 | 63 61 6e 20 67 65 74 20 |eive or |can get |
|00005ea0| 74 68 65 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2e |the sour|ce code.|
|00005eb0| 20 20 41 6e 64 20 79 6f | 75 20 6d 75 73 74 20 74 | And yo|u must t|
|00005ec0| 65 6c 6c 20 74 68 65 6d | 20 74 68 65 69 72 20 72 |ell them| their r|
|00005ed0| 69 67 68 74 73 2e 0a 0a | 20 20 57 65 20 70 72 6f |ights...| We pro|
|00005ee0| 74 65 63 74 20 79 6f 75 | 72 20 72 69 67 68 74 73 |tect you|r rights|
|00005ef0| 20 77 69 74 68 20 74 77 | 6f 20 73 74 65 70 73 3a | with tw|o steps:|
|00005f00| 20 28 31 29 20 63 6f 70 | 79 72 69 67 68 74 20 74 | (1) cop|yright t|
|00005f10| 68 65 20 73 6f 66 74 77 | 61 72 65 2c 20 61 6e 64 |he softw|are, and|
|00005f20| 20 28 32 29 20 6f 66 66 | 65 72 20 79 6f 75 20 74 | (2) off|er you t|
|00005f30| 68 69 73 20 6c 69 63 65 | 6e 73 65 20 77 68 69 63 |his lice|nse whic|
|00005f40| 68 20 67 69 76 65 73 20 | 79 6f 75 20 6c 65 67 61 |h gives |you lega|
|00005f50| 6c 20 70 65 72 6d 69 73 | 73 69 6f 6e 20 74 6f 20 |l permis|sion to |
|00005f60| 63 6f 70 79 2c 20 64 69 | 73 74 72 69 62 75 74 65 |copy, di|stribute|
|00005f70| 20 61 6e 64 2f 6f 72 20 | 6d 6f 64 69 66 79 20 74 | and/or |modify t|
|00005f80| 68 65 20 73 6f 66 74 77 | 61 72 65 2e 0a 0a 20 20 |he softw|are... |
|00005f90| 41 6c 73 6f 2c 20 66 6f | 72 20 65 61 63 68 20 61 |Also, fo|r each a|
|00005fa0| 75 74 68 6f 72 27 73 20 | 70 72 6f 74 65 63 74 69 |uthor's |protecti|
|00005fb0| 6f 6e 20 61 6e 64 20 6f | 75 72 73 2c 20 77 65 20 |on and o|urs, we |
|00005fc0| 77 61 6e 74 20 74 6f 20 | 6d 61 6b 65 20 63 65 72 |want to |make cer|
|00005fd0| 74 61 69 6e 20 74 68 61 | 74 20 65 76 65 72 79 6f |tain tha|t everyo|
|00005fe0| 6e 65 20 75 6e 64 65 72 | 73 74 61 6e 64 73 20 74 |ne under|stands t|
|00005ff0| 68 61 74 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 |hat ther|e is no |
|00006000| 77 61 72 72 61 6e 74 79 | 20 66 6f 72 20 74 68 69 |warranty| for thi|
|00006010| 73 20 66 72 65 65 20 73 | 6f 66 74 77 61 72 65 2e |s free s|oftware.|
|00006020| 20 20 49 66 20 74 68 65 | 20 73 6f 66 74 77 61 72 | If the| softwar|
|00006030| 65 20 69 73 20 6d 6f 64 | 69 66 69 65 64 20 62 79 |e is mod|ified by|
|00006040| 20 73 6f 6d 65 6f 6e 65 | 20 65 6c 73 65 20 61 6e | someone| else an|
|00006050| 64 20 70 61 73 73 65 64 | 20 6f 6e 2c 20 77 65 20 |d passed| on, we |
|00006060| 77 61 6e 74 20 69 74 73 | 20 72 65 63 69 70 69 65 |want its| recipie|
|00006070| 6e 74 73 20 74 6f 20 6b | 6e 6f 77 20 74 68 61 74 |nts to k|now that|
|00006080| 20 77 68 61 74 20 74 68 | 65 79 20 68 61 76 65 20 | what th|ey have |
|00006090| 69 73 20 6e 6f 74 20 74 | 68 65 20 6f 72 69 67 69 |is not t|he origi|
|000060a0| 6e 61 6c 2c 20 73 6f 20 | 74 68 61 74 20 61 6e 79 |nal, so |that any|
|000060b0| 20 70 72 6f 62 6c 65 6d | 73 20 69 6e 74 72 6f 64 | problem|s introd|
|000060c0| 75 63 65 64 20 62 79 20 | 6f 74 68 65 72 73 20 77 |uced by |others w|
|000060d0| 69 6c 6c 20 6e 6f 74 20 | 72 65 66 6c 65 63 74 20 |ill not |reflect |
|000060e0| 6f 6e 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |on the o|riginal |
|000060f0| 61 75 74 68 6f 72 73 27 | 20 72 65 70 75 74 61 74 |authors'| reputat|
|00006100| 69 6f 6e 73 2e 0a 0a 20 | 20 54 68 65 20 70 72 65 |ions... | The pre|
|00006110| 63 69 73 65 20 74 65 72 | 6d 73 20 61 6e 64 20 63 |cise ter|ms and c|
|00006120| 6f 6e 64 69 74 69 6f 6e | 73 20 66 6f 72 20 63 6f |ondition|s for co|
|00006130| 70 79 69 6e 67 2c 20 64 | 69 73 74 72 69 62 75 74 |pying, d|istribut|
|00006140| 69 6f 6e 20 61 6e 64 20 | 6d 6f 64 69 66 69 63 61 |ion and |modifica|
|00006150| 74 69 6f 6e 20 66 6f 6c | 6c 6f 77 2e 0a 0a 7b 46 |tion fol|low...{F|
|00006160| 48 34 7d 47 4e 55 20 47 | 45 4e 45 52 41 4c 20 50 |H4}GNU G|ENERAL P|
|00006170| 55 42 4c 49 43 20 4c 49 | 43 45 4e 53 45 20 54 45 |UBLIC LI|CENSE TE|
|00006180| 52 4d 53 20 41 4e 44 20 | 43 4f 4e 44 49 54 49 4f |RMS AND |CONDITIO|
|00006190| 4e 53 20 46 4f 52 20 43 | 4f 50 59 49 4e 47 2c 20 |NS FOR C|OPYING, |
|000061a0| 44 49 53 54 52 49 42 55 | 54 49 4f 4e 20 41 4e 44 |DISTRIBU|TION AND|
|000061b0| 20 4d 4f 44 49 46 49 43 | 41 54 49 4f 4e 7b 46 7d | MODIFIC|ATION{F}|
|000061c0| 0a 0a 20 20 30 2e 20 54 | 68 69 73 20 4c 69 63 65 |.. 0. T|his Lice|
|000061d0| 6e 73 65 20 41 67 72 65 | 65 6d 65 6e 74 20 61 70 |nse Agre|ement ap|
|000061e0| 70 6c 69 65 73 20 74 6f | 20 61 6e 79 20 70 72 6f |plies to| any pro|
|000061f0| 67 72 61 6d 20 6f 72 20 | 6f 74 68 65 72 20 77 6f |gram or |other wo|
|00006200| 72 6b 20 77 68 69 63 68 | 20 63 6f 6e 74 61 69 6e |rk which| contain|
|00006210| 73 20 61 20 6e 6f 74 69 | 63 65 20 70 6c 61 63 65 |s a noti|ce place|
|00006220| 64 20 62 79 20 74 68 65 | 20 63 6f 70 79 72 69 67 |d by the| copyrig|
|00006230| 68 74 20 68 6f 6c 64 65 | 72 20 73 61 79 69 6e 67 |ht holde|r saying|
|00006240| 20 69 74 20 6d 61 79 20 | 62 65 20 64 69 73 74 72 | it may |be distr|
|00006250| 69 62 75 74 65 64 20 75 | 6e 64 65 72 20 74 68 65 |ibuted u|nder the|
|00006260| 20 74 65 72 6d 73 20 6f | 66 20 74 68 69 73 20 47 | terms o|f this G|
|00006270| 65 6e 65 72 61 6c 20 50 | 75 62 6c 69 63 20 4c 69 |eneral P|ublic Li|
|00006280| 63 65 6e 73 65 2e 20 20 | 54 68 65 20 22 50 72 6f |cense. |The "Pro|
|00006290| 67 72 61 6d 22 2c 20 62 | 65 6c 6f 77 2c 20 72 65 |gram", b|elow, re|
|000062a0| 66 65 72 73 20 74 6f 20 | 61 6e 79 20 73 75 63 68 |fers to |any such|
|000062b0| 20 70 72 6f 67 72 61 6d | 20 6f 72 20 77 6f 72 6b | program| or work|
|000062c0| 2c 20 61 6e 64 20 61 20 | 22 77 6f 72 6b 20 62 61 |, and a |"work ba|
|000062d0| 73 65 64 20 6f 6e 20 74 | 68 65 20 50 72 6f 67 72 |sed on t|he Progr|
|000062e0| 61 6d 22 20 6d 65 61 6e | 73 20 65 69 74 68 65 72 |am" mean|s either|
|000062f0| 20 74 68 65 20 50 72 6f | 67 72 61 6d 20 6f 72 20 | the Pro|gram or |
|00006300| 61 6e 79 20 77 6f 72 6b | 20 63 6f 6e 74 61 69 6e |any work| contain|
|00006310| 69 6e 67 20 74 68 65 20 | 50 72 6f 67 72 61 6d 20 |ing the |Program |
|00006320| 6f 72 20 61 20 70 6f 72 | 74 69 6f 6e 20 6f 66 20 |or a por|tion of |
|00006330| 69 74 2c 20 65 69 74 68 | 65 72 20 76 65 72 62 61 |it, eith|er verba|
|00006340| 74 69 6d 20 6f 72 20 77 | 69 74 68 20 6d 6f 64 69 |tim or w|ith modi|
|00006350| 66 69 63 61 74 69 6f 6e | 73 2e 20 20 45 61 63 68 |fication|s. Each|
|00006360| 20 6c 69 63 65 6e 73 65 | 65 20 69 73 20 61 64 64 | license|e is add|
|00006370| 72 65 73 73 65 64 20 61 | 73 20 22 79 6f 75 22 2e |ressed a|s "you".|
|00006380| 0a 0a 20 20 31 2e 20 59 | 6f 75 20 6d 61 79 20 63 |.. 1. Y|ou may c|
|00006390| 6f 70 79 20 61 6e 64 20 | 64 69 73 74 72 69 62 75 |opy and |distribu|
|000063a0| 74 65 20 76 65 72 62 61 | 74 69 6d 20 63 6f 70 69 |te verba|tim copi|
|000063b0| 65 73 20 6f 66 20 74 68 | 65 20 50 72 6f 67 72 61 |es of th|e Progra|
|000063c0| 6d 27 73 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |m's sour|ce code |
|000063d0| 61 73 20 79 6f 75 20 72 | 65 63 65 69 76 65 20 69 |as you r|eceive i|
|000063e0| 74 2c 20 69 6e 20 61 6e | 79 20 6d 65 64 69 75 6d |t, in an|y medium|
|000063f0| 2c 20 70 72 6f 76 69 64 | 65 64 20 74 68 61 74 20 |, provid|ed that |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.